Bug Tracker

Modify

Ticket #3356 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

Validate plugin v 1.4 fails when no metadata is present

Reported by: mnichols Owned by: joern
Priority: major Milestone: 1.3
Component: plugin Version: 1.2.6
Keywords: Validate Cc:
Blocking: Blocked by:

Description

If this is in a form: <input class="required" type="text"/> and the form is validated with: jQuery("#demo_form").validate({meta:"validate"}); inside $.ready Then I get this : meta is undefined  file:///C:/Development/Assets/test/datetime/jquery.validate.js Line 507 Which is caused by this: return meta.messages && meta.messages[method]; I think this is a new function in the 1.4 script but I think it should check for !meta before calling 'meta.messages' : if(!meta){ return; } This fixes the bug

Change History

comment:1 Changed 5 years ago by joern

  • Owner set to joern

comment:2 Changed 5 years ago by joern

  • Status changed from new to closed
  • Resolution set to fixed

Fixed [5901].

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.