Error with custom user fields

  • Posts: 265
  • Thank you received: 2
  • Hikashop Business
7 years 9 months ago #5244

Warning: Invalid argument supplied for foreach() in /home/demo/www/administrator/components/com_hikashop/classes/field.php on line 752

Add single drop-down custom user field with 2 values.
Go into Customers / Customers / Modify and error occurs.
Reproducible on your demo site.

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

  • Posts: 63951
  • Thank you received: 9217
  • MODERATOR
7 years 9 months ago #5245

Thank you for your bug report :)

You can replace the line

$fields['user'] = $fieldsClass->getData('backend','user');
by
$fields['user'] = $fieldsClass->getFields('backend',$user);
in the file administrator/components/com_hikashop/views/user/view.html.php to fix the problem. That fix will be included in next release.

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

Time to create page: 0.135 seconds
Powered by Kunena Forum