Fullscreen
Loading...
 
Skip to main content

ItemList fails on a multilingual text field

Status
Closed
Subject
ItemList fails on a multilingual text field
Version
17.x
18.x
Category
  • Conflict of two features (each works well independently)
Feature
Trackers
Resolution status
Fixed or Solved
Submitted by
Jean-Marc Libs
Volunteered to solve
Victor Emanouilov
Lastmod by
Victor Emanouilov, Jean-Marc Libs
Rating
(0)
Description

When I point an itemlist on a multilingual text field from another tracker, It does not show anything.
Doing the same on a non-multilingual tracker works fine.

See both in a show instance.

Solution

I have added more information on the ItemsList field setup with commits 63930 (17.x) and 63931 (trunk). The solution is this: when you have ItemLink field in Value Field ID dropdown, keep Link Field ID empty. The reason is this: if you fill in both fields - ItemsList tries to find the item comparing field values which does not always work. In this case, the multilingual field's value contains more than the single language value. We had other use-cases like Dynamic Items List field where the values again did not match. I solved this recently by inspecting Value Field ID and if it is an ItemLink, we don't need to do any value matching - it already points to the right item in the other tracker, so we use it.


I tried it and it's exactly as you say.
Also, the new message makes sense. I believe I would have understood it and not have wasted so much time if I had seen the new message.

Importance
7
Priority
35
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6448
Created
Wednesday 06 September, 2017 14:07:34 UTC
by Jean-Marc Libs
LastModif
Monday 25 September, 2017 21:38:05 UTC


Show PHP error messages