VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: Studio 42 on June 10, 2016, 10:17:43 AM

Title: Cloning product warning
Post by: Studio 42 on June 10, 2016, 10:17:43 AM
Hi all,
On cloning product in VM 3.0.16 and Joomla 3.5.1.
In php error log :
PHP Warning:  Invalid argument supplied for foreach() in G:\web\wamp\www\virtuemart-fr\administrator\components\com_virtuemart\models\customfields.php on line 976
line 974, you have
if (array_key_exists('field', $datas)) {
i think
if (!empty($datas['field']))) {
should do the job.(perhaps is_array is needed too)
Regards,
Patrick