Cannot select Sunday as a date

Created on 23 July 2024, 4 months ago
Updated 12 September 2024, 2 months ago

Problem/Motivation

Sunday cannot be selected as a date, even if the form field configuration does not disable any days.

Steps to reproduce

  1. Install the module, configure Tempus Dominus to use CDN
  2. Edit an existing content type's date and time field form display to use Bootstrap DateTime picker
  3. Leave all options to disable days unchecked
  4. Set a date on a node of that content type. Sunday cannot be selected.

Proposed resolution

Add a condition in js/drupal.bootstrap_datetime_picker.js to check if the disable days option has been filled with data other than an array of 0s. This ensures a 'daysOfWeekDisabled' setting will not be added to the UI options if nothing was selected.

🐛 Bug report
Status

Fixed

Version

4.0

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024