News:

Looking for documentation? Take a look on our wiki

Main Menu

[BUG] Question minimum length is not working

Started by balai, May 17, 2012, 11:24:43 AM

Previous topic - Next topic

balai

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.