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) »
  • Mailing List Smart Group doesn't show on civicrm/mailing/subscribe?reset=1
Pages: [1]

Author Topic: Mailing List Smart Group doesn't show on civicrm/mailing/subscribe?reset=1  (Read 1364 times)

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Mailing List Smart Group doesn't show on civicrm/mailing/subscribe?reset=1
November 12, 2008, 02:01:54 pm
I have a smart group that is a mailing list and has visibility of public user pages and listings. however, this group doesn't show up at the civicrm/mailing/subscribe?reset=1

I also replicated on demo. Is this correct behavior? If so, how come? Also, how can I get around it as I need it to show up....

thanks,
emily

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: Mailing List Smart Group doesn't show on civicrm/mailing/subscribe?reset=1
November 12, 2008, 06:12:14 pm

This is expected behavior. A smart group by definition is a query and hence not exposed to subscription

If you still want to expose it, modify the sql query at: CRM/Mailing/Form/Subscribe.php, line 98 or so. Not sure if thats the only place it needs to be modified, but thats the first place to do so :)

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

emilyf

  • Ask me questions
  • ****
  • Posts: 696
  • Karma: 54
  • CiviCRM version: 2.x - 4.x
  • CMS version: Drupal 5, 6, 7
Re: Mailing List Smart Group doesn't show on civicrm/mailing/subscribe?reset=1
November 17, 2008, 06:18:05 am
thanks, lobo. Modified query on line 98 from:

Code: [Select]
$query = "
SELECT   id, title, description
  FROM   civicrm_group
 WHERE   ( saved_search_id = 0
    OR     saved_search_id IS NULL )
   AND   visibility != 'User and User Admin Only'
   AND   $groupTypeCondition
ORDER BY title";

to:

Code: [Select]
$query = "
SELECT   id, title, description
  FROM   civicrm_group
 WHERE  visibility != 'User and User Admin Only'
   AND   $groupTypeCondition
ORDER BY title";

seems to be working well now.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Mailing List Smart Group doesn't show on civicrm/mailing/subscribe?reset=1

This forum was archived on 2017-11-26.