Problem/Motivation

An error on the Shorthand Story add/edit page:

TypeError: array_push(): Argument #1 ($array) must be of type array, null given in array_push() (line 165 of modules/contrib/shorthand/src/Plugin/Field/FieldWidget/LocalShorthandStorySelectFieldWidget.php).

Steps to reproduce

  1. Download a story on the /admin/content/shorthand page
  2. Go to the shorthand and delete that story
  3. Visit the story add page /node/add/shorthand_story
CommentFileSizeAuthor
#4 43.diff1.08 KBooa33
#3 43.diff1.07 KBooa33

Issue fork shorthand-3476209

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

ooa33 created an issue. See original summary.

ooa33’s picture

Issue summary: View changes
StatusFileSize
new1.07 KB
ooa33’s picture

StatusFileSize
new1.08 KB

An new patch is here

vladimiraus changed the visibility of the branch 3476209-an-error-on to hidden.

jannakha’s picture

Status: Active » Reviewed & tested by the community

thank you for your contribution!
patch applies, issue is fixed.

RTBC

  • vladimiraus committed 5240dfb5 on 4.0.x authored by ooa33
    Issue #3476209 by ooa33, vladimiraus, jannakha: An error on the...
vladimiraus’s picture

Status: Reviewed & tested by the community » Fixed

Thank you! Committed! 🍰

Status: Fixed » Closed (fixed)

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