Category Mass Action export has only 2 columns

  • Posts: 193
  • Thank you received: 76
10 years 1 week ago #179876

-- 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:

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
$types['parent_category']
and
$types['categories']
are not set.

Last edit: 10 years 1 week ago by korzo.

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

  • Posts: 13201
  • Thank you received: 2322
10 years 6 days ago #179932

Hi,

Thanks for the report.
You have indeed to remove the

unset($action['category']);

and for the notices, please add the following codes just before the indicated lines:
							if(!isset($types['parent_category']) || !is_object($types['parent_category']))
								$types['parent_category'] = new stdClass();
							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.064 seconds
Powered by Kunena Forum