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.
In the them/theme.inc file there is the function called : theme_date_part_label_ampm.
This function outputs a single whitespace as the label.
Doing this can lead to an invalid block structure depending on the themes used.
What happens is that a lot of webbrowsers will ignore the single space and make the label function the same as a the CSS code: 'display: none;' would.
On the node-edit form the following happens:
Date of Meeting
Day Hour Minute [ Select ampm ]
[ Select Day ] [ Select Hour ] [ Select Minute ]
What should happen:
Date of Meeting
Day Hour Minute
[ Select Day ] [ Select Hour ] [ Select Minute ] [ Select ampm ]
I have observed this problem in firefox, opera, and google chrome.
Instead of using a whitespace, use an explicit html non-breaking space ' '
Comment | File | Size | Author |
---|---|---|---|
date-6.x-2.x-ampm_explicit_space-1.patch | 724 bytes | thekevinday | |
Comments
Comment #1
DamienMcKennaUnfortunately 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.