Dolibarr ERP & CRM » Bugs » bug #1751 Hook addMoreActionsButtons removes all previous buttons instead of appending oneLatest modifications
Answer now
Snapshot Details |
Submitted by: | Marcos García (marcosgdf) | | Submitted on: | 2014-12-21 14:10 |
Last Modified On: | 2014-12-23 13:11 | |
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: | Closed | | Assigned to: | None |
Resolution: | Invalid | |
Comments- Marcos GarcĂa 2014-12-23 15:48
- Oh ok. I have never seen that type of hook before and I thought it was an error because it was quite different than the rest of them.
- 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 ? |
|
Need more info→ ClosedNone→ Invalid