phpMyEdit - Viewing Bug Advanced Details [ Go Back ]
289 core / field option trivial always 2004-12-15 16:23 2005-03-10 11:23
kenneth All  
All  
normal All  
feedback 5.4 (stable)  
open  
none  
none  
Javascript generation error
Empty first array entry Never produces an edit error check 'required' => true
Enpty first entry in select array
the code: $condition = 'theForm.%s.selectedIndex == -1
should be: $condition = 'theForm.%s.selectedIndex == 0

Bug Notes
nepto   
2004-12-16 17:55   
Please let us know the user-agent (browser) name where did you test this. Thanks.
kenneth   
2004-12-16 18:08   
Error ocurs on:

Mozzila osx
Firebird osx
Opera osx
Mozillia MS 2000
Firebird MS 2000
IE MS 2000

edited on: 2004-12-16 18:10
kenneth   
2004-12-16 18:08   
I changed the code as indicated and it works
nepto   
2004-12-18 04:07   
Do you think that we can yout use

$condition = 'theForm.%s.selectedIndex <= 0

I see no problem with that, do you?
kenneth   
2004-12-18 10:05   
Nope I see no problem but then again I am not a Javascript interpreter :-) Sounds like you are worried about a mountain of code that is working with -1. I will run a test with <= 0 and post a note on my results.
nepto   
2004-12-26 05:36   
Any discovered results?

Thanks.
kenneth   
2004-12-27 20:27   
I have not tried it yet
admin   
2005-03-10 11:23   
Changed the category.