Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
screenshot | 28.17 KB | itkadmin |
Comments
Comment #1
David_Rothstein CreditAttribution: David_Rothstein commentedThat'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?
Comment #2
KarenS CreditAttribution: KarenS commentedDoes 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.
Comment #3
KarenS CreditAttribution: KarenS commentedNo response and I cannot reproduce.
Comment #4
zareth CreditAttribution: zareth commentedI 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.
Comment #5
wusel CreditAttribution: wusel commentedYes, 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.
Comment #6
KarenS CreditAttribution: KarenS commentedI think this is a duplicate of #1442718: "Show End Date" always checked by default when creating or editing a node
Comment #7
cosminadrianpopescu CreditAttribution: cosminadrianpopescu commentedAlso change the 'checked' => TRUE to 'checked' => FALSE to make it 100% correct
Comment #8
j0rd CreditAttribution: j0rd commentedDoes patch in comment #43 fix it for you?
#1442718: "Show End Date" always checked by default when creating or editing a node