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 Drupal Modules (Moderator: Donald Lobo) »
  • Views3 - Query on groups
Pages: [1]

Author Topic: Views3 - Query on groups  (Read 2000 times)

xtofke

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5
  • PHP version: 5
Views3 - Query on groups
May 19, 2013, 02:17:18 am
Hi,

I'm using the Views3 module on Drupal 7.22 with CiviCRM 4.33
I'm trying to create a simple list of all groups, sorted ascending on group title.

When I specify the title a sorting criteria, the generated query still sorts on ID
I also noticed that while I select to show the fields 'ID' and 'Title', the genertaed query shows
"SELECT DISTINCT civicrm_group.id AS id, civicrm_group.id AS civicrm_group_id
FROM
{civicrm_group} civicrm_group"

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: Views3 - Query on groups
May 20, 2013, 06:52:48 am

seems like the views integration code does not deal with this nicely

any chance u can take a look at that code and see how to rectify this problem

thanx

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

xtofke

  • I’m new here
  • *
  • Posts: 9
  • Karma: 0
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5
  • PHP version: 5
Re: Views3 - Query on groups
May 20, 2013, 08:32:32 pm
I'm not really into programming these kind of things so I don't really have an idea where exactly to look.

Maybe interesting to add is that this used to work well in CiviCRM 4.2.
The only issue I had with this view was not being able to filter on Group Title, but only on group_id. A bit of work to configure when you need to filter on a number of groups, but less anoying than a sort that does not work.

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: Views3 - Query on groups
May 21, 2013, 07:22:46 am

would help the project if you can get your developer and/or integrator to work on this and figure out what broke and why

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Views3 - Query on groups

This forum was archived on 2017-11-26.