Commit 9fd4407e authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes several problems with readonly and edit mode in multiPlugin

parent d21a544f
......@@ -92,7 +92,7 @@ class multiPlugin extends simplePlugin
$ReadOnly = (!isset($this->parent) || !$this->parent) && !session::is_set('edit');
foreach ($this->plugin as &$plug) {
$plug->ReadOnly = $ReadOnly;
$plug->read_only = $ReadOnly;
if (!$is_first) {
$display .= '<p class="seperator plugbottom">&nbsp;</p>';
} else {
......@@ -148,6 +148,15 @@ class multiPlugin extends simplePlugin
unset($plug);
}
public function setNeedEditMode ($bool)
{
parent::setNeedEditMode($bool);
foreach ($this->plugin as &$plug) {
$plug->setNeedEditMode($bool);
}
unset($plug);
}
/* Save to LDAP */
function save()
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment