phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
635 extension related minor always 2009-05-18 13:32 2009-05-18 13:32
mabi  
 
normal  
new 5.7.1 (stable)  
open  
none  
none  
extension phpMyEdit-mce-cal generates incorrect calendar setup code
phpMyEdit-mce-cal generates the calendar setup code using double quotes around integers and boolean values confusing jscalendar. In the generated html there is also a missing space between the id and name field.
I attach a patch based on version v 1.6 2006-09-16 18:43:47 nepto
patch:
469c469
< echo 'name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';
---
> echo ' name="',$this->cgi['prefix']['data'].$this->fds[$k],'" value="';
494c494,500
< echo "\t",str_pad($ck1, 15),' : "',$cv1,'",',"\n";
---
> if(is_int($cv1)){
> echo "\t",str_pad($ck1, 15),' : ',$cv1,',',"\n";
> }else if(is_bool($cv1)){
> echo "\t",str_pad($ck1, 15),' : ',$cv1?'true':'false',',',"\n";
> }else{
> echo "\t",str_pad($ck1, 15),' : "',$cv1,'",',"\n";
> }

There are no notes attached to this bug.