mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +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(
|
$filter = array(
|
||||||
'cat_id' => array_flip((array)$this->acl->get_cats(EGW_ACL_READ)),
|
'cat_id' => array_flip((array)$this->acl->get_cats(EGW_ACL_READ)),
|
||||||
//'accessory_of' => '-1'
|
//'accessory_of' => '-1'
|
||||||
|
'deleted' => null
|
||||||
);
|
);
|
||||||
$limit = false;
|
$limit = false;
|
||||||
if($options['start'] || $options['num_rows']) {
|
if($options['start'] || $options['num_rows']) {
|
||||||
|
@ -70,6 +70,7 @@ class resources_import_csv extends importexport_basic_import_csv {
|
|||||||
// Refresh ACL
|
// Refresh ACL
|
||||||
//$GLOBALS['egw']->acl->read_repository();
|
//$GLOBALS['egw']->acl->read_repository();
|
||||||
}
|
}
|
||||||
|
if(!$record->accessory_of) $record->accessory_of = -1;
|
||||||
//error_log(__METHOD__.__LINE__.array2string($_definition->plugin_options['conditions']));
|
//error_log(__METHOD__.__LINE__.array2string($_definition->plugin_options['conditions']));
|
||||||
if ($this->definition->plugin_options['conditions']) {
|
if ($this->definition->plugin_options['conditions']) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user