Interval cannot be set to 1

Created on 29 July 2023, over 1 year ago

Problem/Motivation

The value for the interval field can only be set to 2 or higher for the saved value to be displayed in the node edit form. If the value of the interval field on the node edit form is set to 1, the placeholder value of '# of' is displayed instead of '1'. This can be confusing to content editors as it looks as if no value has been entered.

Steps to reproduce

1. Add a field of type Smart Date inline range
2. Add a date to the field and set to recur every 1 months that ends after 2 times
3. Save the node
4. Edit the node again and the interval field (with the label 'Repeats every') displays the placeholder value of '# of'
5. Change interval to a value of 2 or higher and save
6. Edit the node again and the interval field displays the value that was input

Proposed resolution

Update the Smart Date Recur module to allow a value of 1 to be saved and displayed in the node form.

🐛 Bug report
Status

Active

Version

4.0

Component

Smart Date Recur

Created by

🇺🇸United States thefancywizard

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