* NEW : Derive ModuleBuilder status labels from arrayofkeyval LibStatut() in the ModuleBuilder object template hardcoded the Draft/Enabled/Disabled labels, which diverged from the labels defined in the 'status' field arrayofkeyval used by the list filter and the select. Build labelStatus/labelStatusShort from arrayofkeyval so the badge, the filter and the select all show the same configurable labels. Add ModuleBuilderTemplateConventionsTest covering the derivation. Next: normalize trigger codes to MYMODULE_MYOBJECT_ACTION in class line 637 + typo line 50, sql/data.sql lines 27/30-32, myobject_card.php line 378; extend the test with trigger assertions. * NEW : Use explicit MODULE_OBJECT_ACTION trigger naming in template The ModuleBuilder object template emitted the validate trigger as the generic MYOBJECT_VALIDATE, inconsistent with the MYMODULE_MYOBJECT prefix already advertised by $TRIGGER_PREFIX and used by the unvalidate/cancel/reopen/sentbymail trigger codes. Normalize the validate trigger, the seed data.sql agenda triggers and the close notification example to the MYMODULE_MYOBJECT_<ACTION> policy so generated modules expose clear, non-ambiguous trigger codes. Also fix a typo in the $TRIGGER_PREFIX comment. Extend ModuleBuilderTemplateConventionsTest with trigger naming checks. Next: ChangeLog entry covering both features, then dolibarr-audit + functional verification, then push to remote quentin and run pr-review-v2. * DOC : Add ChangeLog entries for ModuleBuilder status labels and triggers Next: dolibarr-audit on both features, then functional verification, then push to remote quentin and run pr-review-v2. * FIX : Guard ModuleBuilder LibStatut against undefined status key Hardening from audit: when LibStatut() is called with a status value that is not present in the 'status' field arrayofkeyval, reading labelStatus/labelStatusShort raised an undefined-array-key warning under PHP 8. Default both labels to an empty string, which dolGetStatus already accepts, so the badge degrades gracefully to the status code. Next: push branch to remote quentin and run dolibarr-pr-review-v2 on the full diff vs develop. * CHORE Drop the files CONTRIBUTING forbids to edit in a PR [skip-claudemd] ChangeLog is generated from the commit messages at release time, and the language files other than en_US are synced from Transifex. --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr> Co-authored-by: Alexandre SPANGARO <aspangaro.dolibarr@gmail.com> |
||
|---|---|---|
| .. | ||
| admin | ||
| class | ||
| template | ||
| index.php | ||
| README.md | ||
Module Builder
This is a module to provide embedded tools to develop your own application/features inside Dolibarr ERP CRM software. It provides tools for module developers to kickstart their project and give an hands-on sample of which features Dolibarr has to offer for module development.
If you don't need to develop your own module/application, you just don't need this.
After enabling this module, you should find features to generate or edit modules/application from menu Home - Tools - Module builder