Index: branches/unlabeled/unlabeled-1.4.2/core/units/general/cat_tag_processor.php =================================================================== diff -u -r3906 -r4039 --- branches/unlabeled/unlabeled-1.4.2/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 3906) +++ branches/unlabeled/unlabeled-1.4.2/core/units/general/cat_tag_processor.php (.../cat_tag_processor.php) (revision 4039) @@ -63,7 +63,10 @@ $cat_object =& $this->Application->recallObject('c', 'c_List'); $sql = 'SELECT CategoryId, ParentId, Name FROM '.$cat_object->TableName.' WHERE CategoryId = '.$params['cat_id']; $res = $this->Conn->GetRow($sql); - + if ($res === false) { + // in case if category is deleted + return ''; + } $block_params['name'] = $params['block']; $block_params['cat_name'] = $res['Name']; $block_params['cat_id'] = $res['CategoryId']; @@ -100,7 +103,31 @@ $special = crc32($parent_cat_id.$types.$except.$recursive); return $special; - } + } + + function ExportStatus($params) + { + define('DBG_SKIP_REPORTING', 1); + + $export_object =& $this->Application->recallObject('CatItemExportHelper'); + + $event = new kEvent($this->getPrefixSpecial().':OnDummy'); + + $action_method = 'perform'.ucfirst($this->Special); + $field_values = $export_object->$action_method($event); + + // finish code is done from JS now + if ($field_values['start_from'] == $field_values['total_records']) + { + if ($this->Special == 'import') { + $this->Application->StoreVar('PermCache_UpdateRequired', 1); + } + } + + $export_options = $export_object->loadOptions($event); + return $export_options['start_from'] * 100 / $export_options['total_records']; + } + } ?> \ No newline at end of file