Invalid boolean values in recurring_events_create_form.js

Created on 13 August 2025, 1 day ago

Problem/Motivation

Commit 8fe75abb included several fixes for issues reported by phpcs, including changing true/false to TRUE/FALSE. Unfortunately, that change was also applied to recurring_events_create_form.js, causing an error because TRUE and FALSE are not recognized keywords in JavaScript

Steps to reproduce

  1. Open your browser's JS console.
  2. Go to the event creation form (/events/add/default).
  3. Select "Weekly" recurrence.
  4. Set the start date.

Result: Console reports Uncaught ReferenceError: FALSE is not defined

Proposed resolution

Revert FALSE to false and TRUE to true in js/recurring_events_create_form.js.

πŸ› Bug report
Status

Active

Version

2.0

Component

Recurring Events (Main module)

Created by

πŸ‡ΊπŸ‡ΈUnited States muriqui

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

Comments & Activities

Production build 0.71.5 2024