Fix importing when accessory_of is missing

This commit is contained in:
Nathan Gray 2012-12-19 20:23:40 +00:00
parent 8ff5f6f99f
commit cb84d313e8
2 changed files with 2 additions and 0 deletions

View File

@ -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']) {

View File

@ -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']) {