From b9c6f53c66710c1155f5dc88e7b636d6f5b27bc3 Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Thu, 6 Aug 2015 21:34:42 +0000 Subject: [PATCH] Order Header and Footer lists by name field not by table id --- ang/crmMailing/BlockHeaderFooter.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ang/crmMailing/BlockHeaderFooter.html b/ang/crmMailing/BlockHeaderFooter.html index 45c47ee32a..249560d785 100644 --- a/ang/crmMailing/BlockHeaderFooter.html +++ b/ang/crmMailing/BlockHeaderFooter.html @@ -12,7 +12,7 @@ Required vars: mailing, crmMailingConst ui-options="{dropdownAutoWidth : true, allowClear: true}" ng-change="checkTokens(mailing, '*')" ng-model="mailing.header_id" - ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Header'}"> + ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Header'} | orderBy:'name'"> @@ -24,7 +24,7 @@ Required vars: mailing, crmMailingConst ui-options="{dropdownAutoWidth : true, allowClear: true}" ng-change="checkTokens(mailing, '*')" ng-model="mailing.footer_id" - ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Footer'}"> + ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Footer'} | orderBy:'name'"> -- 2.25.1