Commit Graph
2 Commits
Author SHA1 Message Date
objecttothis 73ae557688 fix(items): move plugin fields, sync plugin_data on change
- Move item_form_plugin_fields render point in form.php from top of
  fieldset to bottom, near closing form_close(), so plugin fields
  render after core item fields.
- Rework plugin_data_helper.js to sync plugin_data hidden field on
  every change/click of a [data-plugin-field] element, not just on
  form submit. Needed because some forms use jQuery Validate's
  submitHandler, which bypasses native submit event and would leave
  plugin_data stale.
- Refactor sync logic into reusable syncPluginData() helper invoked
  on initial load, on field change/click, and on submit.

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-09-03 14:36:31 +04:00
Travis Garrison 184b483103 refactor(tests): move PluginTestCase to Tests\\Support namespace
- Relocate PluginTestCase from App\\Libraries\\Plugins to Tests\\Support
- Update all references in AGENTS.md, README.md, and test files
- Add TestModulePlugin fixture for module registration tests
- Add PluginModuleRegistrationTest covering namespace registration
- Add plugin_data_helper.js for zero-JS plugin form field collection

Signed-off-by: Travis Garrison <travis@chiraqbookstore.com>
2026-07-30 13:46:46 +04:00