Commit e400a580 authored by jaapjansma's avatar jaapjansma

update

parent fd2e1355
......@@ -127,6 +127,11 @@ class CRM_Dataprocessor_Form_DataProcessor extends CRM_Core_Form {
$this->addCheckBox('defaultSort', E::ts('Default sort'), $sortOptions);
$this->assign('sortFields', $sortFields);
$this->add('hidden', 'default_sort_weight', null, ['id' => 'default_sort_weight']);
// Backwords compatibilty
$this->assign('defaultSortUseIcon', false);
if (version_compare(CRM_Utils_System::version(), '5.15', '<')) {
$this->assign('defaultSortUseIcon', true);
}
}
protected function addFilters() {
......
......@@ -53,6 +53,9 @@
<ul id="defaultsort" class="crm-checkbox-list crm-sortable-list" style="width: 600px;">
{foreach from=$sortFields item="sortFieldLabel" key="sortFieldValue"}
<li id="defaultsort-{$sortFieldValue}">
{if $defaultSortUseIcon}
<i class="crm-i fa-arrows crm-grip" style="float:left;"></i>
{/if}
{$form.defaultSort.$sortFieldValue.html}
</li>
{/foreach}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment