dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [Bug #1751] Hook addMoreActionsButtons removes all p


From: Doliforge
Subject: [Dolibarr-bugtrack] [Bug #1751] Hook addMoreActionsButtons removes all previous buttons instead of appending one
Date: Tue, 23 Dec 2014 13:11:14 +0100

Doliforge
Is this email not displaying correctly?
update email preferences.

Hook addMoreActionsButtons removes all previous buttons instead of appending one

Latest modifications

2014-12-23 13:11 (Europe/Paris)
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 ?
Changes:
  • Status: 
OpenNeed more info

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 ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]