CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • How to order mailing recipient groups alphabetically?
Pages: [1]

Author Topic: How to order mailing recipient groups alphabetically?  (Read 527 times)

clemenbor

  • I’m new here
  • *
  • Posts: 16
  • Karma: 1
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6
  • MySQL version: 5.1.48
  • PHP version: 5.2.1
How to order mailing recipient groups alphabetically?
December 19, 2012, 04:28:53 am
Hi!

When creating a new mailing, I can choose the "include groups" as recipients of it. When I´m logged as an admin, I can see this groups ordered alphabetically. But when I´m logged as another user, these groups (include groups box and exclude groups box) are ordered by group creation date.

I would like to have it ordered alphabetically as well.

Are there any settings for this??

Thanks a lot!!

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: How to order mailing recipient groups alphabetically?
December 19, 2012, 08:43:02 am

No settings for this. Seems like this is an issue with the code and u'll need to do a code fix for this

If you can check the code in CRM/Mailing/Form/Group.php and see what needs to be done, that would be great

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

webpartners

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: -
  • CMS version: -
  • MySQL version: -
  • PHP version: -
Re: How to order mailing recipient groups alphabetically?
January 03, 2013, 01:28:11 am
Although this should be fixed through sql, it can be solved after line 142 using an "asort".

        //get the mailing groups.
        $groups = CRM_Core_PseudoConstant::group('Mailing');
        asort($groups);

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • How to order mailing recipient groups alphabetically?

This forum was archived on 2017-11-26.