mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Fix importing when accessory_of is missing
This commit is contained in:
parent
8ff5f6f99f
commit
cb84d313e8
@ -522,6 +522,7 @@ class resources_bo
|
||||
$filter = array(
|
||||
'cat_id' => array_flip((array)$this->acl->get_cats(EGW_ACL_READ)),
|
||||
//'accessory_of' => '-1'
|
||||
'deleted' => null
|
||||
);
|
||||
$limit = false;
|
||||
if($options['start'] || $options['num_rows']) {
|
||||
|
@ -70,6 +70,7 @@ class resources_import_csv extends importexport_basic_import_csv {
|
||||
// Refresh ACL
|
||||
//$GLOBALS['egw']->acl->read_repository();
|
||||
}
|
||||
if(!$record->accessory_of) $record->accessory_of = -1;
|
||||
//error_log(__METHOD__.__LINE__.array2string($_definition->plugin_options['conditions']));
|
||||
if ($this->definition->plugin_options['conditions']) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user