VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: ExSpirit on May 05, 2015, 15:54:15 PM

Title: Custom Field with date no longer works in VM 3.0.8
Post by: ExSpirit on May 05, 2015, 15:54:15 PM
Yesterday I updated VirtueMart from 3.0.7 to 3.0.8 (on Joomla 3.4.1) and today I noticed some strange bug. I can't add Custom Field width Date type to my product. If I select from drop down and other field type it works, but if I select date nothing happens (nothing is added). I also tried to create new Custom Field with Date type but it's the same.

I have also tried now to install clean VM 3.0.8 on clean J 3.4.1 and this bug is active there to, so it's 100% problem in VM 3.0.8 (because it worked fine in 3.0.7). Can someone post some quick fix about this?
Title: Re: Custom Field with date no longer works in VM 3.0.8
Post by: GJC Web Design on May 05, 2015, 16:18:35 PM
I can create one but when I try to add to a product I get

Fatal error: Class 'VmHtml' not found in C:\xampp\htdocs\virtuemart\administrator\components\com_virtuemart\helpers\vmjsapi.php on line 679

needs in administrator\components\com_virtuemart\helpers\vmjsapi.php ~ line 678

add ->

if (!class_exists('VmHTML')) require(VMPATH_ADMIN.DS.'helpers'.DS.'html.php');

just before

$id = VmHtml::ensureUniqueId($id);
Title: Re: Custom Field with date no longer works in VM 3.0.8
Post by: ExSpirit on May 05, 2015, 16:41:17 PM
Great, this worked. Thanks :)