Index: trunk/kernel/units/general/cat_event_handler.php =================================================================== diff -u -r3616 -r3629 --- trunk/kernel/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 3616) +++ trunk/kernel/units/general/cat_event_handler.php (.../cat_event_handler.php) (revision 3629) @@ -1064,7 +1064,21 @@ */ function OnExport(&$event) { - $selected_ids = $this->Application->GetVar('linklist'); + // use old fasion (in-portal) grid + $selector_name = $this->Application->getUnitOption($event->Prefix, 'CatalogSelectorName'); + if ($selector_name) { + $selected_ids = $this->Application->GetVar($selector_name); + } + else { + $this->StoreSelectedIDs($event); + $selected_ids = $this->getSelectedIDs($event); + + if (implode(',', $selected_ids) == '') { + // K4 fix when no ids found bad selected ids array is formed + $selected_ids = false; + } + } + $selected_cats_ids = $this->Application->GetVar('export_categories'); $this->Application->StoreVar($event->Prefix.'_export_ids', $selected_ids ? implode(',', $selected_ids) : '' );