Can't import/export linked multiple VALUES
- Status
- Closed
- Subject
- Can't import/export linked multiple VALUES
- Version
- 18.x
21.x - Category
- Conflict of two features (each works well independently)
- Error
- Resolution status
- Fixed or Solved
- Submitted by
- Philippe
- Lastmod by
- Josue Zirimwabagabo
- Rating
- Description
Hi,
Following a doc example, on a fresh TW21 docker install from tiki, I create 2 trackers:
1st has fields: name, sports (linked, multiple values)
2nd has fields: sport
entering 2 sports and 1 name with 2 practiced sports for the dude.Now go to tiki-ajax_services.php?controller=tabular&action=create
and if you click "Initialize this format with the current tracker fields" (http://127.0.0.1/tiki-ajax_services.php?controller=tabular&action=edit&tabularId=4&prefill=1)
you get an error 382 according to Apache:Fatal error: Uncaught Error: Call to a member function getMode() on null in /var/www/html/lib/core/Services/Tracker/TabularController.php:700 Stack trace: #0 /var/www/html/lib/core/Services/Tracker/TabularController.php(104): Services_Tracker_TabularController->getSchema(Array, true) #1 /var/www/html/lib/core/Services/Broker.php(108): Services_Tracker_TabularController->action_edit(Object(JitFilter)) #2 /var/www/html/lib/core/Services/Broker.php(28): Services_Broker->attemptProcess('tabular', 'edit', Object(JitFilter)) #3 /var/www/html/tiki-ajax_services.php(51): Services_Broker->process('tabular', 'edit', Object(JitFilter)) #4 {main} thrown in /var/www/html/lib/core/Services/Tracker/TabularController.php on line 700
I tried using old export function and, instead of flattening the values to a comma list, it exports to CSV with "Array" in place of the linked values.
I also tried to make a tabular, then manually change field definition to "multiple values" and it threw an error about "Field mode" and it removes the field.
Maybe I do it wrong, how to export (and import) linked fields with multiple values?
It looks like mode is in working for item_list relating to a item_link field, but it only shows the first value
Best fix qould be with option like item_list field where you can specify format like %0,%1 or %0,%1 or else, to choose the way to export and import nested values.
Thank you!
EDIT: Visit
http://philmzo-11996-7378.show2.tikiwiki.org/tiki-ajax_services.php?controller=tabular&action=edit&tabularId=1&prefill=1
for the problem on TW21- Files
- Importance
- 8
- Easy to solve?
- 5
- Priority
- 40
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 7378
- Created
- Monday 25 May, 2020 20:28:25 UTC
by Philippe - LastModif
- Monday 05 May, 2025 19:48:00 UTC