- Posts: 193
- Thank you received: 76
Category Mass Action export has only 2 columns
11 years 10 months ago - 11 years 10 months ago #179876
by korzo
Category Mass Action export has only 2 columns was created 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:
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
and
are not set.
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']);
There are also 2 notices "Creating default object from empty value" in this file on lines 224 and 235, because
Code:
$types['parent_category']
Code:
$types['categories']
Last edit: 11 years 10 months ago by korzo.
Please Log in or Create an account to join the conversation.
11 years 10 months ago #179932
by Xavier
Replied by Xavier on topic Category Mass Action export has only 2 columns
Hi,
Thanks for the report.
You have indeed to remove the
and for the notices, please add the following codes just before the indicated lines:
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.217 seconds