using $readonlys["__ALL__"] with explicit $readonlys[$name] = false was NOT working for extensions

This commit is contained in:
Ralf Becker 2014-03-24 09:03:38 +00:00
parent 94ff3e1966
commit dba03454fb

View File

@ -318,7 +318,7 @@ class etemplate extends boetemplate
<script language="javascript">
egw_LAB.wait(function(){
$j().ready(function() {
popup_resize();
window.setTimeout(popup_resize, 150);
});
});
</script>'."\n";
@ -1135,7 +1135,7 @@ class etemplate extends boetemplate
}
if (!$ext_type) $ext_type = $type;
// if readonlys[__ALL__] is set, also set readonlys[$name] (extensions can mark themselfs as 'noReadonlysALL', eg. tab-widget!)
if ($readonlys['__ALL__'] && !$this->haveExtension($type,'noReadonlysALL'))
if ($readonlys['__ALL__'] && $readonlys[$name] !== false && !$this->haveExtension($type,'noReadonlysALL'))
{
$readonlys[$name] = true;
}