bugfix: js error when creating foreign key
--HG-- extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4041
This commit is contained in:
@@ -134,7 +134,7 @@ SQL.Row.prototype.mousedown = function(e) {
|
||||
}
|
||||
|
||||
SQL.Row.prototype.update = function(data) { /* update subset of row data */
|
||||
if (data.nll && "def" in data && data.def.match(/^null$/i)) { data.def = null; }
|
||||
if (data.nll && data.def && data.def.match(/^null$/i)) { data.def = null; }
|
||||
|
||||
for (var p in data) { this.data[p] = data[p]; }
|
||||
if (!this.data.nll && this.data.def === null) { this.data.def = ""; }
|
||||
|
||||
Reference in New Issue
Block a user