on the content create/edit form, there is a checkbox for 'show end date'
When the form loads, the box is de-selected, but the end date is present.
If I select the box, a tick appears
If I select it again, the tick disappears and so does the end date.
After that the end date appears and disappears as it should depending on how the box is selected.

Not a big deal at all, it would just make sense that either the box loads checked with an end date, or loads unchecked without an end date.

Am I missing a setting somewhere?

CommentFileSizeAuthor
screenshot28.17 KBitkadmin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

David_Rothstein’s picture

That's strange - for me, the end date starts off hidden when the form loads (as would be expected).

Any chance you have custom JavaScript on this page that could be interfering?

Your screenshot also looks a little odd for some other reasons, like maybe it was customized or you're using an older version of the module... If you use the very latest 7.x-2.x-dev code does the problem still occur?

KarenS’s picture

Status: Active » Postponed (maintainer needs more info)

Does this still happen? If it only happened the first time you tried it after updating the code, you may just have needed to clear your browser cache.

KarenS’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No response and I cannot reproduce.

zareth’s picture

Version: 7.x-2.x-dev » 7.x-2.2
Status: Closed (cannot reproduce) » Needs review

I had the same issue as you and solved it by changing a line in module's code.

file: date/date_elements.inc line : 368
'visible' => array(
for
'invisible' => array(

in my case I think that the fact I updated JQuery lib on my website can be the reason of the problem, not sure.

wusel’s picture

Yes, it is the same as in http://drupal.org/node/1442718#comment-5652784
The logic of this field "Show End Date" is yet NOT correct.

But in the Import-modules like Feeds und Migrate, the logic must be the same as in module Date.

KarenS’s picture

Status: Needs review » Closed (duplicate)
cosminadrianpopescu’s picture

Also change the 'checked' => TRUE to 'checked' => FALSE to make it 100% correct

j0rd’s picture