Problem/Motivation
If we don't choose any locations in the Locations field, then after trying to save the node, we got this error:
Warning: Trying to access array offset on value of type null in ws_event_tokens() (line 106 of /var/www/docroot/modules/contrib/ws_event/ws_event.tokens.inc)
Steps to reproduce
- log in as admin
- create an Event CT
- leave empty the Locations field

- save the page
Proposed resolution
An additional check needs to be added if the location field isn't empty.
| Comment | File | Size | Author |
|---|---|---|---|
| DS-1385-LocationsField.png | 9 KB | aleevas |
Issue fork ws_event-3427414
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
rolki commentedLooks good to me!
Comment #5
froboy