Dolibarr ERP & CRM » Bugs » bug #1751 Hook addMoreActionsButtons removes all previous buttons instead of appending oneLatest modifications
Answer now
Snapshot Details |
Last Modified On: | 2014-12-21 14:10 | | Submitted by: | Marcos García (marcosgdf) |
Submitted on: | 2014-12-21 14:10 | |
Summary: | Hook addMoreActionsButtons removes all previous buttons instead of appending one |
Description: | Hook addMoreActionsButtons removes all previous buttons instead of appending one
Hooks must return -1,0 or 1 and addMoreActionsButtons interprets a return as a "remove all buttons".
|
Step to reproduce bug: | |
Detected in version: | 3.6.1 | | Category: | Core Problem |
Severity: | 7 | | OS Type/Version: | |
PHP version: | | | Database type and version: | |
Status |
Status: | Need more info | | Assigned to: | None |
Resolution: | None | |
Comments- Laurent Destailleur 2014-12-23 13:11
- addMoreActionsButtons is an "addreplace" hook (goal is to have all hooks working this way).
This meas if hook return 0, other button are kept. But if return code is 1, then default code (so standard button) are replaced.
Do you have something not working like this ? On wich page do you experience this ? |
|
This meas if hook return 0, other button are kept. But if return code is 1, then default code (so standard button) are replaced.
Do you have something not working like this ? On wich page do you experience this ?
Open→ Need more info