readonlys was not namespaced in old eTemplate, therefore if we dont find data under current namespace, we look into parent (if there is anything namespaced, we will NOT look for parent!)

This commit is contained in:
Ralf Becker 2014-06-12 14:22:39 +00:00
parent b0d2c7fb00
commit c0cfe3f320

View File

@ -406,8 +406,15 @@ var et2_readonlysArrayMgr = et2_arrayMgr.extend(
{
_id = this.expandName(_id);
}
entry = this.getEntry(_id);
// readonlys was not namespaced in old eTemplate, therefore if we dont find data
// under current namespace, we look into parent
// (if there is anything namespaced, we will NOT look for parent!)
var mgr = this;
while (mgr.parentMgr && jQuery.isEmptyObject(mgr.data))
{
mgr = mgr.parentMgr;
}
entry = mgr.getEntry(_id);
}
// Let the array entry override the read only attribute entry