Fullscreen
Loading...
 
Skip to main content

console import:tracker ignores "Import updates" setting

Status
Open
Subject
console import:tracker ignores "Import updates" setting
Version
18.x
Category
  • Bug
Feature
Console / Command Line
Trackers
Resolution status
New
Submitted by
Javier Scantamburlo
Lastmod by
Javier Scantamburlo
Rating
(0)
Description

When importing a CSV from command line:
console.php tracker:import format_number file_name
... tabular format "import updates" checkbox has no effect.

As far as I understand structure configuration is not being loaded in TrackerImportCommand.php

I've added the following line and everything seems to work:

Copy to clipboard
$schema = new \Tracker\Tabular\Schema($tracker); $schema->loadFormatDescriptor($info['format_descriptor']); $schema->loadFilterDescriptor($info['filter_descriptor']); // Added line $schema->loadConfig($info['config']); $schema->validate();



Please, let me know if there is a better way to solve this issue.

Thanks,

Javier.-

Importance
3
Easy to solve?
7
Priority
21
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6577
Created
Wednesday 21 February, 2018 19:23:02 UTC
by Javier Scantamburlo
LastModif
Wednesday 21 February, 2018 19:23:02 UTC


Show PHP error messages