bugfix: js error when creating foreign key

--HG--
extra : convert_revision : svn%3Ab267cdba-c1da-11dd-874b-8bacd04a0a74/trunk%4041
This commit is contained in:
ondrej.zara
2009-05-26 05:51:08 +00:00
parent b93b2c36e9
commit 9e4b97c94e
+1 -1
View File
@@ -134,7 +134,7 @@ SQL.Row.prototype.mousedown = function(e) {
} }
SQL.Row.prototype.update = function(data) { /* update subset of row data */ 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]; } for (var p in data) { this.data[p] = data[p]; }
if (!this.data.nll && this.data.def === null) { this.data.def = ""; } if (!this.data.nll && this.data.def === null) { this.data.def = ""; }