Next month Missing

Created on 12 September 2024, 3 months ago
Updated 17 September 2024, 3 months ago

When setting this module up I have noticed that it seems the following month is missing from the drop down list

In my instance, October is missing on all my booking forms!)

I have attached a screengrab of the dropdown to show that October is missing

I have set this up on a number of booking forms here and this is happening on every form

Any help on what may be causing this would very much appriciated

🐛 Bug report
Status

Fixed

Version

1.0

Component

User interface

Created by

🇬🇧United Kingdom mylocaltrades

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

Comments & Activities

  • Issue created by @mylocaltrades
  • 🇵🇹Portugal rfmarcelino

    Hi @mylocaltrades,
    Can you please provide a screenshot of your webform booking settings so I can try to replicate it?

  • 🇬🇧United Kingdom mylocaltrades

    The is the YAML:

    name:
      '#type': textfield
      '#title': Name
      '#required': true
    email:
      '#type': email
      '#title': Email
      '#required': true
    book_a_date:
      '#type': booking
      '#title': 'Book a date'
      '#required': true
      '#days_advance': ''
      '#excluded_weekdays':
        Mon: Mon
        Tue: Tue
        Thu: Thu
        Fri: Fri
        Sat: Sat
        Sun: Sun
        Wed: 0
      '#time_interval': |-
        09:30|10:30
        11:00|12:00
      '#slot_duration': '60'
      '#seats_slot': 12
  • Status changed to Needs review 3 months ago
  • 🇵🇹Portugal rfmarcelino

    The problem seems to be related to how javascript processes dates which was also mentioned in another issue.
    I just sent a commit to fix it. Install the dev version and let me know if it solves it for you too.
    composer require 'drupal/webform_booking:1.0.x-dev@dev'

  • 🇬🇧United Kingdom mylocaltrades

    Works perfectly! Thank you so much

  • Status changed to Fixed 3 months ago
  • 🇵🇹Portugal rfmarcelino

    Released as part of 1.0.13

  • Status changed to Fixed 3 months ago
Production build 0.71.5 2024