VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: balai on May 17, 2012, 11:24:43 AM

Title: [BUG] Question minimum length is not working
Post by: balai on May 17, 2012, 11:24:43 AM
Hi

I realized that when you set a number minimum than the default (50) in the "Question minimum length" configuration it does not work.
The form is not sent until there are more than 50 characters.

I spoted the problem.
It is in the file: components/com_virtuemart/controllers/productdetails.php
line 62. If you modify the 
$min = VmConfig::get('vm_asks_minimum_comment_length',50)+1;     
to:
$min = VmConfig::get('vm_asks_minimum_comment_length')+1;     

it works. That means that the VmConfig::get get its value from the 2nd parameter and not from the set setting.