Jump to content

Bug? \IPS\Helpers\Form\DateRange + Required + Unlimited value

Recommended Posts

I am trying to do a "From/To or Permanent" type of field. When saving, the following...

$form->add(new \IPS\Helpers\Form\DateRange('daterange', array('start' => NULL, 'end' => NULL), TRUE, array('unlimited' => 1, 'unlimitedLang' => 'permanent')));

...results in...

Could contain: File, Page, Text, Monitor, Computer Hardware, Screen, Hardware, Electronics

I should be able to overcome it with some custom validation, but would be good if it could work as-is (you don't appear to use a DateRange with a required = true anywhere in the code I have availability to)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...