Fix value from Selection with relation when empty
This commit is contained in:
1 parent
48a8545804
commit
538cc69949
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user