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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • (v1.9) CiviMember Membership Types don't respect Domain IDs?
Pages: [1]

Author Topic: (v1.9) CiviMember Membership Types don't respect Domain IDs?  (Read 2052 times)

posco

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 8
(v1.9) CiviMember Membership Types don't respect Domain IDs?
January 31, 2008, 02:29:31 pm
Hello,

I've been testing my new Drupal module (http://drupal.org/project/civimember_roles) on CiviCRM installs that use Domain IDs and ran into a problem. I followed the documentation's guide on how to setup Domain IDs (http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+for+Drupal+-+Configure+Multi-site+Installations). Then I ran this code in my module:

Code: [Select]
$sql = 'SELECT id, name FROM civicrm_membership_type WHERE domain_id = %1;';
$params = array(1 => array(CIVICRM_DOMAIN_ID, 'Integer'));
$dao =& CRM_Core_DAO::executeQuery($sql, $params);

The code does what I want, only pulling Membership Types that are in the current domain. However when I go to Administer CiviCRM > CiviMember > Membership Types from within Drupal, I see a list of all the Membership Types from all the domains, not just the domain I'm currently using. This isn't a big issue, but it does cause some confusion when you can see Membership Types in CiviCRM that my module isn't displaying.

Has anyone else experienced this? I have been able to reproduce it twice on my localhost, but I am just using the generic test data that comes with CiviCRM. Beside Membership Types, everything else seems to be separated like I would expect (Contacts, Organizations, etc). The odd thing is that CiviMember Status Rules are even separated, which is why I believe this is a bug rather than a feature, but I could be wrong...

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: (v1.9) CiviMember Membership Types don't respect Domain IDs?
February 01, 2008, 12:48:31 am
This is a bug, http://issues.civicrm.org/jira/browse/CRM-2607

thanx

kurund
Found this reply helpful? Support CiviCRM

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • (v1.9) CiviMember Membership Types don't respect Domain IDs?

This forum was archived on 2017-11-26.