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

  1. log in as admin
  2. create an Event CT
  3. leave empty the Locations field
    a Locations field in the Event LB
  4. save the page

Proposed resolution

An additional check needs to be added if the location field isn't empty.

CommentFileSizeAuthor
DS-1385-LocationsField.png9 KBaleevas

Issue fork ws_event-3427414

Command icon 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

aleevas created an issue. See original summary.

rolki’s picture

Status: Active » Reviewed & tested by the community

Looks good to me!

  • aleevas committed 9c33be80 on 1.4.x
    Issue #3427414: An additional check is if the location field isn't empty...
froboy’s picture

Version: 1.4.x-dev » 1.4.4
Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.