[JIRA] (JSONFN-5) Do not print null in the results when expanding collection containing pointer to the node that no longer exists

3 views
Skip to first unread message

JIRA (on behalf of Jan Haderka)

unread,
Apr 22, 2020, 4:50:26 AM4/22/20
to dev-...@magnolia-cms.com
Jan Haderka updated an issue
 
JSON Templating Functions / Improvement JSONFN-5
Do not print null in the results when expanding collection containing pointer to the node that no longer exists
Change By: Jan Haderka
when calling {{...expand("categories")...}} that contain category id that no longer exists, result should not contain null like:

{ code:java}
{ {
  "categories": [
    {
      "displayName": "Example Category",
      "@name": "example-category"
    },
    null
  ],
  "title": "Example Article",
  "@name": "example-article"
}

{code
} }
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.3#713003-sha1:0709f78)
Atlassian logo

JIRA (on behalf of Jan Haderka)

unread,
Apr 22, 2020, 4:50:26 AM4/22/20
to dev-...@magnolia-cms.com
Jan Haderka created an issue
Issue Type: Improvement Improvement
Assignee: Jan Haderka
Created: 22/Apr/20 10:49 AM
Priority: Neutral Neutral
Reporter: Jan Haderka

when calling ...expand("categories")... that contain category id that no longer exists, result should not contain null like:
code

{
"categories": [

{ "displayName": "Example Category", "@name": "example-category" }

,
null
],
"title": "Example Article",
"@name": "example-article"
}
code

JIRA (on behalf of Jan Haderka)

unread,
Apr 22, 2020, 4:50:26 AM4/22/20
to dev-...@magnolia-cms.com
Jan Haderka updated an issue
Change By: Jan Haderka
when calling {{...expand("categories")...}} that contain category id that no longer exists, result should not contain null like:
{{
code}}
{
  "categories": [
    {
      "displayName": "Example Category",
      "@name": "example-category"
    },
    null
  ],
  "title": "Example Article",
  "@name": "example-article"
}
{{code }}
Add Comment Add Comment
 
Reply all
Reply to author
Forward
0 new messages