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
- Open your browser's JS console.
- Go to the event creation form (/events/add/default).
- Select "Weekly" recurrence.
- 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.
Issue fork recurring_events-3541224
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
muriqui commentedComment #4
dmundraConfirmed the update fixes the JS error. Thank you @muriqui
Comment #5
pfrenssenThanks for working on this! Unfortunately this can't be merged as long as the tests are not passing. Postponing on #3541906: Tests are failing in 2.0.x.
Comment #6
pfrenssen#3541906: Tests are failing in 2.0.x has been merged, restoring previous status.
Comment #7
pfrenssenComment #9
pfrenssenThanks a lot for the fix!