Skip to content

Commit

Permalink
Fixed bug #2795256, introduced by patch #2602633
Browse files Browse the repository at this point in the history
  • Loading branch information
helmo committed May 23, 2009
1 parent de26c7f commit 3e6bd7c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions js/tbl_change.js
Expand Up @@ -9,17 +9,18 @@
* Modify from controls when the "NULL" checkbox is selected
*
* @param string the MySQL field type
* @param string the urlencoded field name
* @param string the urlencoded field name - OBSOLETE
* @param string the md5 hashed field name
* @param string the multi_edit row sequence number
*
* @return boolean always true
*/
function nullify(theType, urlField, md5Field, multi_edit)
{
var rowForm = document.forms['insertForm'];

if (typeof(rowForm.elements['funcs' + multi_edit + '[' + urlField + ']']) != 'undefined') {
rowForm.elements['funcs' + multi_edit + '[' + urlField + ']'].selectedIndex = -1;
if (typeof(rowForm.elements['funcs' + multi_edit + '[' + md5Field + ']']) != 'undefined') {
rowForm.elements['funcs' + multi_edit + '[' + md5Field + ']'].selectedIndex = -1;
}

// "SET" field , "ENUM" field with more than 20 characters
Expand Down Expand Up @@ -47,7 +48,7 @@ function nullify(theType, urlField, md5Field, multi_edit)
}
// Other field types
else /*if (theType == 5)*/ {
rowForm.elements['fields' + multi_edit + '[' + urlField + ']'].value = '';
rowForm.elements['fields' + multi_edit + '[' + md5Field + ']'].value = '';
} // end if... else if... else

return true;
Expand All @@ -59,6 +60,7 @@ function nullify(theType, urlField, md5Field, multi_edit)
* entered
*
* @param string the urlencoded field name
* @param string the multi_edit row sequence number
*
* @return boolean always true
*/
Expand Down

0 comments on commit 3e6bd7c

Please sign in to comment.