Incorrect update of list of rooms during edit entry
Brought to you by:
jberanek
To reproduce bug:
Problem:
When set option to null in JS the aoption removed imediately and option[1] becomes option[0]. Counting 0..length-1 is incorrect here:
Solution:
Count from last element to first element instead of first to last in lines approx. 390.
Replace corresponding lines in edit_entry.php by:
roomOptionNum = roomsObj.length;
for (i=(roomOptionNum-1); i >= 0 ; i--)
{
roomsObj.options[i] = null
}
Logged In: YES
user_id=71843
Originator: NO
Thanks for this bug report, I'll look at it when I have some more time.
John.
Logged In: YES
user_id=71843
Originator: NO
Thanks, that fix works and I've checked it into CVS.
John.
Logged In: YES
user_id=71843
Originator: NO
Fixed in MRBS 1.2.6.1
John.