Commit 77364b2c authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Some objects have no mainAttr (aclAssignment)

parent fe204bcc
......@@ -61,7 +61,7 @@ class simpleTabs extends tabs
parent::__construct($config_object, $data, $dn, $category, $copied_object);
$infos = $this->objectInfos();
if ($infos) {
if ($infos && $infos['mainAttr']) {
$baseobject = $this->getBaseObject();
if (($baseobject instanceof simplePlugin) && $baseobject->attributesAccess[$infos['mainAttr']]->getUnique() === FALSE) {
$baseobject->attributesAccess[$infos['mainAttr']]->setUnique(TRUE);
......
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