List:Eventum General Discussion« Previous MessageNext Message »
From:M  IN BLR SISL Srivathsan Date:September 24 2009 7:03pm
Subject:RE: Issue-discussion: Bug in Mandatory Custom fields
View as plain text  
Hi Marcelo,

Thanks for the fix.  I shall test it the first tomorrow as I need to deploy an
implementation of Eventum.  I shall update you accordingly.

Thanks and rgds,
Watson

-----Original Message-----
From: Marcelo Coscia [mailto:marcelo_coscia@stripped]
Sent: Thu, 24-Sep-2009 16:29
To: eventum-users@stripped
Subject: Issue-discussion: Bug in Mandatory Custom fields

Hi,

I resolved a problem related to "Bug in Mandatory Custom fields" (with
multiple combo and combo)
In the file: js\validation.js
Add the two lines at the function : checkCustomFields

 function checkCustomFields(f)
 {
    // requires the variable custom_fields_info to be set
     for (var i = 0; i < custom_fields_info.length; i++) {

         var info = custom_fields_info[i];
         var field = $('#custom_field_' + info.id);

+        if (field.val()!=null) {
            if (((field.val().length < 1) || (field.val() == -1)) &&
(field.parent().parent().css('display') == 'none')) {
                continue;
            }
+        }

I expect to help somebody...
regards
Marcelo


--
Eventum Users Mailing List
For list archives: http://lists.mysql.com/eventum-users
To unsubscribe:    http://lists.mysql.com/eventum-users?unsub=1

Thread
Issue-discussion: Bug in Mandatory Custom fieldsMarcelo Coscia24 Sep
  • RE: Issue-discussion: Bug in Mandatory Custom fieldsM  IN BLR SISL Srivathsan24 Sep