Skip to main content

Category Mass Action export has only 2 columns

More
11 years 10 months ago - 11 years 10 months ago #179876 by korzo
-- HikaShop version -- : 2.3.4

When you create Mass action for category export, csv file has only two columns:
parent_category, categories

Bug is also reported here .

In file administrator\components\com_hikashop\classes\massaction.php on line 2264 call to
$massaction->organizeExportColumn() remove all csv columns from $params->action and replace them with 2 columns mentioned above.
The code in question is on line 197:
Code:
unset($action['category']);
When I comment out this line, export works as expected.

There are also 2 notices "Creating default object from empty value" in this file on lines 224 and 235, because
Code:
$types['parent_category']
and
Code:
$types['categories']
are not set.
Last edit: 11 years 10 months ago by korzo.

Please Log in or Create an account to join the conversation.

More
11 years 10 months ago #179932 by Xavier
Hi,

Thanks for the report.
You have indeed to remove the
Code:
unset($action['category']);

and for the notices, please add the following codes just before the indicated lines:
Code:
if(!isset($types['parent_category']) || !is_object($types['parent_category'])) $types['parent_category'] = new stdClass();
Code:
if(!isset($types['categories']) || !is_object($types['categories'])) $types['categories'] = new stdClass();

Please Log in or Create an account to join the conversation.

Time to create page: 0.194 seconds
Powered by Kunena Forum