Skip to content
Snippets Groups Projects
Unverified Commit 5f511d86 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4796 from aydreeihn/issue/export-headers

Issue: Ticket Export Headers
parents b76e8f05 e26f62ff
No related branches found
No related tags found
No related merge requests found
......@@ -1152,25 +1152,23 @@ class CustomQueue extends VerySimpleModel {
$new = $fields;
foreach ($this->exports as $f) {
$heading = $f->getHeading();
$key = $f->getPath();
if (!isset($fields[$key])) {
$this->exports->remove($f);
continue;
}
$info = $fields[$key];
if (is_array($info))
$heading = $info['heading'];
else
$heading = $info;
$f->set('heading', $heading);
$f->set('sort', array_search($key, $order)+1);
unset($new[$key]);
}
$exportableFields = CustomQueue::getExportableFields();
foreach ($new as $k => $field) {
if (is_array($field))
if (isset($exportableFields[$k]))
$heading = $exportableFields[$k];
elseif (is_array($field))
$heading = $field['heading'];
else
$heading = $field;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment