[MGNLUI-6433] Jcr browser does not show values of multiple property Created: 01/Dec/20  Updated: 18/May/21  Resolved: 12/Apr/21

Status: Closed
Project: Magnolia UI
Component/s: None
Affects Version/s: 6.2.5
Fix Version/s: 6.2.8

Type: Improvement Priority: Neutral
Reporter: Sang Ngo Huu Assignee: Martin Haderka
Resolution: Resolved Votes: 0
Labels: multifield
Remaining Estimate: Not Specified
Time Spent: 1d 4h 8m
Original Estimate: Not Specified

Attachments: PNG File image-2021-04-12-13-18-09-893.png    
Issue Links:
dependency
is depended upon by MGNLUI-6315 Migrate JCR Browser to new UI FW Closed
duplicate
duplicates MGNLUI-6492 JCR app showing only first check for ... Closed
supersession
supersedes MGNLUI-6462 JCR Browser only shows first of multi... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: Migrate JCR Browser
Sprint: UI FW 25
Story Points: 3

 Description   

Step to reproduce:

  • Create an app with field jcrMultiValueField
  • Create a node
  • See in JCR browser, only first value is shown

Only check the values with export function:

  <sv:property sv:name="multicustom" sv:type="String" sv:multiple="true">
    <sv:value>f17d9e43-7415-473a-9d09-7d6146e7915a</sv:value>
    <sv:value>6f1d6679-9dff-4d9d-ab90-f6d4ada0bc21</sv:value>
    <sv:value>eceb90bf-c4ef-457b-847d-49f1ba1f29eb</sv:value>
  </sv:property>

Expectation:

Show all values

Development notes

info.magnolia.ui.editor.JcrItemInteractionStrategyImpl#getPropertyValue also converts set to string and shows a single value.

Only check the values with export function:

  <sv:property sv:name="multicustom" sv:type="String" sv:multiple="true">
    <sv:value>f17d9e43-7415-473a-9d09-7d6146e7915a</sv:value>
    <sv:value>6f1d6679-9dff-4d9d-ab90-f6d4ada0bc21</sv:value>
    <sv:value>eceb90bf-c4ef-457b-847d-49f1ba1f29eb</sv:value>
  </sv:property>

Try update the property utils library or do fix in our property set factory.



 Comments   
Comment by Christopher Chard [ 07/Dec/20 ]

I noticed this also on 6.2.4. The values are shown in exported file

Comment by Roman Kovařík [ 26/Mar/21 ]

https://git.magnolia-cms.com/projects/PLATFORM/repos/ui.pub/browse/magnolia-ui-framework-jcr/src/main/java/info/magnolia/ui/editor/JcrItemInteractionStrategyImpl.java#81

Comment by Adam Siska [ 12/Apr/21 ]

Solution info: all values are displayed in brackets, similarly type of inner values in brackets is shown for multi-property type.

Generated at Mon Feb 12 09:36:24 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.