Separator config setting becomes red, and unusable.

Created on 10 May 2024, 7 months ago
Updated 5 September 2024, 3 months ago

Problem/Motivation

If a date range field has a separator already defined before switching to the "AP Style" formatter, and it's not the value of "endash" nor "to", switching the Formatter to "AP Style" causes the separator select box to be red, and selecting a value doesn't make the error go away.

Steps to reproduce

  1. Create a Date Range field with Formatter set to "Default" and add a "-" (dash) as the separator.
  2. Apply the changes.
  3. Go back into that Date Range field and select "AP Style".
  4. Separator select box will be red, and switching to "En dash" or "to" doesn't make it happy.
  5. Set the Formatter back to "Default"
  6. Type the word "endash", replacing the "-"
  7. Set the Formatter to "AP Style", and now it's content with the value for that setting.

Proposed resolution

I suppose a potential solution could be to check if the value is something other than "endash" or "to" and default to one of the accepted values for the "AP Style" formatter.

πŸ› Bug report
Status

Closed: outdated

Version

1.9

Component

User interface

Created by

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

Comments & Activities

  • Issue created by @bjared
  • Assigned to shelane
  • πŸ‡ΊπŸ‡ΈUnited States shelane
  • πŸ‡ΊπŸ‡ΈUnited States shelane

    I have not been able to reproduce this. See the attached screen capture movie.

    I'm on Drupal 10.2.6 with the latest 2.0.0 version.

  • Status changed to Postponed: needs info 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States shelane
  • πŸ‡ΊπŸ‡ΈUnited States shelane

    This may have been fixed with separator fixes that were released in 2.0.1 (for Drupal 10.1 and higher) and 8.x-1.10 (Drupal 10.0 and lower). Please update your version and let me know if you still have the issue.

  • Issue was unassigned.
  • πŸ‡ΊπŸ‡ΈUnited States shelane

    The only instance I have seen of this is in views where the default separator is "-" and when switching to AP Style, it says that is not a valid option. However, I still see the ability to change it to one of the separator options.

  • Status changed to Closed: outdated 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States shelane
Production build 0.71.5 2024