Commit 7e69e5a5 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4856 Put back copypastehandler for deprecated tabs constructor, needed by systemManagement

Showing with 12 additions and 1 deletion
+12 -1
......@@ -167,7 +167,18 @@ class CopyPasteHandler
return array();
}
$entry['object'] = objects::open($entry['dn'], $entry['type']);
if (isset($entry['type'])) {
$entry['object'] = objects::open($entry['dn'], $entry['type']);
} else {
trigger_error('Call to deprecated tabs constructor');
// old way
$tab_c = $entry['tab_class'];
$tab_o = $entry['tab_object'];
$tab_a = $entry['tab_acl_category'];
// Deprecated
$entry['object'] = new $tab_c(NULL, $config->data['TABS'][$tab_o], $entry['dn'], $tab_a);
}
$entry['object']->set_acl_base($base);
if ($entry['parent'] !== NULL) {
......
Supports Markdown
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