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 15:48:24 +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 15:48 (Europe/Madrid)
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.
Changes:
  • Status: 
Need more infoClosed
  • Resolution: 
NoneInvalid

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 ?


reply via email to

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