Problem/Motivation

Console error when editing a node with an empty json field:
Uncaught ReferenceError: NULL is not defined at parseJson (json_widget.js?swk406:14:7)

The "NULL" value should be changed to "null" (lowercase) in javascript.

Comments

scb created an issue. See original summary.

scb’s picture

Status: Active » Needs review
StatusFileSize
new391 bytes

Simple patch attached.

damienmckenna’s picture

Status: Needs review » Reviewed & tested by the community
Parent issue: » #3465996: Plan for JSON Field 8.x-1.6

Good catch, thank you.

  • damienmckenna committed acb09839 on 8.x-1.x
    Issue #3525472 by scb, damienmckenna: Invalid NULL value in json_widget....
damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you.

Status: Fixed » Closed (fixed)

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