patch 612202 null for foreign keys

This commit is contained in:
Marc Delisle
2002-09-20 21:13:17 +00:00
parent 986135ea26
commit d6ec7e3f24
4 changed files with 34 additions and 9 deletions

View File

@@ -18,8 +18,9 @@ function nullify(theType, urlField, md5Field)
rowForm.elements['funcs[' + urlField + ']'].selectedIndex = -1;
}
// "SET" field or "ENUM" field with more than 20 characters
if (theType == 1 || theType == 3) {
// "SET" field , "ENUM" field with more than 20 characters
// or foreign key field
if (theType == 1 || theType == 3 || theType == 4) {
rowForm.elements['field_' + md5Field + '[]'].selectedIndex = -1;
}
// Other "ENUM" field
@@ -31,7 +32,7 @@ function nullify(theType, urlField, md5Field)
} // end for
}
// Other field types
else /*if (theType == 4)*/ {
else /*if (theType == 5)*/ {
rowForm.elements['fields[' + urlField + ']'].value = '';
} // end if... else if... else