Fix value from Selection with relation when empty

This commit is contained in:
Cédric Krier committed 2013-09-06 21:14:18 +02:00
1 parent 48a8545804
commit 538cc69949
1 file changed
+3
+3
View File
@@ -1387,6 +1387,9 @@
value_get: function() {
var val = this.el.val();
if ('relation' in this.attributes) {
if (val === '') {
return null;
}
return parseInt(val, 10);
}
return val;