Skip to content
Snippets Groups Projects
Commit eeccbf30 authored by JediKev's avatar JediKev
Browse files

issue: Queue Export Sorting

This addresses an issue where the Queue Export does not remember your
column sorting. This was due to the `getExportableFields()` function
called in the Export Template that gets a predefined list of fields plus
some `cdata` fields with a predefined sort order (not your saved sort
order). This updates the export template to merge the `$fields` array that
contains the exportable fields in the saved sorting order and the
`getExportableFields()` result (array) that contains the same fields plus
`cdata` fields. This will return the fields in the saved sorting order
whilst still displaying possible `cdata` fields.
parent d0f02bbb
No related branches found
No related tags found
No related merge requests found
......@@ -39,7 +39,7 @@ if (isset($cache['fields']) && $fields)
</tbody>
<tbody class="sortable-rows" id="fields">
<?php
foreach ($queue->getExportableFields() as $path => $label) {
foreach (array_merge($fields, $queue->getExportableFields()) as $path => $label) {
echo sprintf('<tr style="display: table-row;">
<td><i class="faded-more
icon-sort"></i>&nbsp;&nbsp;<label><input
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment