phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
560 core / general minor always 2008-10-22 10:43 2008-10-22 10:43
seldon every  
every  
normal every  
new current from CVS  
open  
none  
none  
hiding of goto_combo does not work correct
when you set up the buttons like this

$opts['buttons']['L']['up'] = array('-<<','-<','-add','->','->>','-goto','-goto_combo');

which means that the buttons should only be displayed when they are enabled, it works for all buttons except for the goto_combo. this button is shown, although its correctly disabled.
see description
the bug is in core class around line 2030 where it says

if ($disablegoto != '' && $disabled < 0) return;

which always is false since there is no var $disablegoto defined, instead it should read so

if ($disabledgoto != '' && $disabled < 0) return;

NOTICE the d in $disabledgoto

thats the solution ;) also attached as goto_combo_disabled.patch

There are no notes attached to this bug.