Skip to content

Fix admin template Risk type error and bump version to 1.7.4#89

Merged
happyloa merged 1 commit intomainfrom
codex/fix-installation-error-and-update-to-1.7.4
Dec 22, 2025
Merged

Fix admin template Risk type error and bump version to 1.7.4#89
happyloa merged 1 commit intomainfrom
codex/fix-installation-error-and-update-to-1.7.4

Conversation

@happyloa
Copy link
Owner

Motivation

  • The admin risk table caused a fatal type error on first install because the template used an unqualified Risk type while the model is defined as Watchdog\Models\Risk.
  • Preventing this mismatch avoids an E_ERROR on initial page render and improves robustness of the admin UI.
  • Version metadata needed to be incremented for the patch release.

Description

  • Import the model in the template by adding use Watchdog\Models\Risk; to templates/admin-page.php to ensure the Risk type resolves correctly.
  • Bump the plugin version constant in src/Version.php to 1.7.4 and update the plugin header in site-add-on-watchdog.php to 1.7.4.
  • Update readme.txt stable tag and add a changelog entry for 1.7.4 describing the fix.

Testing

  • No automated tests were executed as part of this change.
  • The change is limited to a template import and metadata updates with minimal risk to runtime behavior.
  • Files modified: templates/admin-page.php, src/Version.php, site-add-on-watchdog.php, and readme.txt.
  • Commit message: Fix admin template Risk type error.

Codex Task

@happyloa happyloa merged commit a5d2689 into main Dec 22, 2025
2 checks passed
@happyloa happyloa deleted the codex/fix-installation-error-and-update-to-1.7.4 branch December 22, 2025 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant