Welcome, Guest. Please login or register.
Login with username, password and session length


It's a release candidate! VirtueMart 2.0 RC - the next generation VirtueMart - is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
Pages: [1]   Go Down
Print
Author Topic: Bug in JavaScript validation Registration Form  (Read 810 times)
afmol
Newbie
*
Posts: 1


« on: January 04, 2011, 09:14:49 AM »

Description:
When submitting the registration form as a new user, the required title field is not validated. When a user does not select a title he will not be notified by a red label. In our particular case this resulted in a blanco page with only the contents of the shopping cart

VirtueMart Version:

1.1.5

Joomla/Mambo Version:
1.5.20

Steps to replicate:

Submit registration form without choosing title

Proposed fix(es):
In

administrator/components/com_virtuemart/classes/ps_userfield.php

line 693:

if(formelement.selectedIndex.value == '') {

This is not valid JavaScript. I changed it to:

if (formelement.options[formelement.selectedIndex].value == '') {

and the problem was solved!
« Last Edit: January 04, 2011, 09:30:18 AM by afmol » Logged
zanardi
Development Team
Hero Member
*
Posts: 812


WWW
« Reply #1 on: January 04, 2011, 12:15:23 PM »

Did you already try VirtueMart 1.1.6?
Logged

Pages: [1]   Go Up
Print
Jump to: