* addressbook/importexport: if there are no export csv definitions for a given user, do not show the csv export option in context menu

This commit is contained in:
Klaus Leithoff 2012-05-29 13:39:44 +00:00
parent 318f85f651
commit 57be9157d5

View File

@ -636,6 +636,7 @@ class addressbook_ui extends addressbook_bo
'disableClass' => 'rowNoEdit',
);
}
if (isset($actions['export']['children']['csv']) && !importexport_helper_functions::has_definitions('addressbook','export')) unset($actions['export']['children']['csv']);
//echo "<p>".__METHOD__."($do_email, $tid_filter, $org_view)</p>\n"; _debug_array($actions);
return $actions;