[CONTTAGS-92] Content tags field does not work Created: 29/Jul/20  Updated: 10/Mar/21  Resolved: 10/Mar/21

Status: Closed
Project: Content Tags
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Alberto Cordero Assignee: Unassigned
Resolution: Inactive Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2020-07-29-10-00-55-894.png    
Issue Links:
Relates
relates to MGNLUI-6072 Token field not working properly Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: UI framework implementation

 Description   

Content tags field does not work in Magnolia 6.2.2

I use this configuration:

tags:
class: info.magnolia.contenttags.ui.field.TagsFieldDefinition

actions:
commit:
class: info.magnolia.contenttags.form.action.SaveDialogWithTagsActionDefinition

But when I´m trying to save them I have the following error:

Caused by: javax.jcr.ValueFormatException: Single-valued property can not be set to an array of values:property /magnolia-travels/Vietnam--Tradition-and-Today/mgnl:tags

If I create the field with mgnl:tags instead of creating with tags I have a text field with the first tag only.

In this git you have a migrated contentapp with tags and the first configuration I explained before:

https://git.magnolia-cms.com/users/ebguilbert/repos/spanish-sales-demo/browse/light-modules/tours-v8

Could you take a look? Thanks



 Comments   
Comment by Šimon Demočko [ 18/Feb/21 ]

acordero Hi, you're migrating to new framework, but the action you're trying to use is from the compatibility package. We think it should work with the default commit action. Removing the configuration reference should fall back to it.

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