Fixed a minor issue with the implementation of Field.isEmpty method

This commit is contained in:
Giulio Cesare Solaroli 2015-03-22 22:38:54 +01:00
parent 7a116201f7
commit ab128e98e7

View File

@ -143,7 +143,10 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record.Version.Field, Object, {
], ],
'isHidden': [ 'isHidden': [
MochiKit.Base.method(this, 'isHidden'), MochiKit.Base.method(this, 'isHidden'),
MochiKit.Base.partial(MochiKit.Base.operator.eq, false) // MochiKit.Base.partial(MochiKit.Base.operator.eq, false)
function (aValue) {
return (aValue == false) || (aValue == null);
}
] ]
}); });
deferredResult.addCallback(MochiKit.Base.values); deferredResult.addCallback(MochiKit.Base.values);