Hi All,

I've got a CCK content-type containing a DateTime field with this Date Popup.
I got 2 input's 1 for the date and when i click on it te datepicker opens
the other input is for the time. When i leave that field empty and submit the form i get an empty validation message.

I've spend hours looking for it but can't find it, is there someone who has had the same problem or anyone knows how to specifiy a validation message for the empty time field??

Thanks!

Kind regards,

Martin

Comments

jcarnett’s picture

I'm seeing this same thing after upgrading to 6.x-2.6, yet another site with the same version doesn't have this problem. I haven't yet found any culprits while digging through the module code.

gdud’s picture

The problem is in date_popup.module in line 352.

Type:
$message = ' ';

Instead:
$message = '';

The problem will dissapear :-)

jcarnett’s picture

@gdud Thanks for the tip. That works for me.

artem_antonov’s picture

Is a feature or bug?
Any form to control that without touching a original module?

Thanks.

gdud’s picture

I think it is a bug.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Unfortunately the Drupal 6 version of the Date module is no longer supported. That said, we appreciate that you took time to work on this issue. Should this request still be relevant for Drupal 7 please feel free to reopen it. Thank you.