Bug: Repeating group validation error message

When I have a repeating group, validations are all working, but when validation fails on the any of the 2nd+ group of fields (1st group is ok), the error image and the error message are not shown. The Label shows correctly in red.
 
I don't seem to be able to duplicate this.

Can you point me at the page? if not, can you give a rundown of your setup, like what template you are using, is it in a popup or regular form, are you taling about AJAX validation or regular form submit validation, etc.

-- hugh
 
Sorry, but I can't point you to the page. Screenshot of repeating group attached. Untitle.png shows the issue, good.png shows it behaving (see last dot point below)


  • Template: Modified, but also tested with default.
  • Regular form
  • No Ajax
  • The elements' validation is php and using [$repeatCounter]
  • If there is a validation error in the first data set, errors in the 2nd set show correctly too.
 

Attachments

  • Untitled.png
    Untitled.png
    33.2 KB · Views: 109
  • good.png
    good.png
    31.7 KB · Views: 107
On the Departing element I have two validations:

Code:
$d = strtotime($data);
$day = date('D',$d);
return ($day <> 'Sat');
and
Code:
$post = JRequest::get('post');
$joins = $post['join'];
$joinid = 5;
$element1 = 'Booking_item___Arriving';
$element2 = 'Booking_item___Departing';
$elementData1 = $joins[$joinid][$element1][$repeatCounter];
$elementData2 = $joins[$joinid][$element2][$repeatCounter];
$date1 = strtotime($elementData1);
$date2 = strtotime($elementData2);  
return $date2 > $date1;
 
ok I could replicate it with the php validation rule, and I think I have commited a fix to this one at github. Could you update and test if the changes fix your problem?
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top