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 Multi-Site functionality »
  • CiviMail Settings: setting default flag in one domain unsets default in others
Pages: [1]

Author Topic: CiviMail Settings: setting default flag in one domain unsets default in others  (Read 1991 times)

davej

  • Ask me questions
  • ****
  • Posts: 404
  • Karma: 21
CiviMail Settings: setting default flag in one domain unsets default in others
April 19, 2010, 07:34:45 am
Hi,

In CiviMail's "Mail Accounts" settings at civicrm/admin/mailSettings?reset=1&action=browse , if you check Default for your setting on one domain, this unsets the is_default flag on all other mail_settings entries, cross-domain. It should only unset is_default for other entries in the same domain. Here's the offending code, in CRM/Core/BAO/MailSettings.php :

Code: [Select]
        //handle is_default.
        if ( $params['is_default'] ) {
            $query = 'UPDATE civicrm_mail_settings SET is_default = 0';
            CRM_Core_DAO::executeQuery( $query );
        }

- The query should have WHERE domain_id = whatever.

Dave J

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviMail Settings: setting default flag in one domain unsets default in others
May 02, 2010, 02:06:29 pm
Yeah - I was about to report this :-)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

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: CiviMail Settings: setting default flag in one domain unsets default in others
May 02, 2010, 06:21:36 pm

can u please file an issue with a link to the forum post

we'll fix this for 3.1.5

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

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: CiviMail Settings: setting default flag in one domain unsets default in others
May 03, 2010, 01:39:50 am
http://issues.civicrm.org/jira/browse/CRM-6182
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Multi-Site functionality »
  • CiviMail Settings: setting default flag in one domain unsets default in others

This forum was archived on 2017-11-26.