Answers.Body: <p>@benoit.dubuc can you please test by applying patch from <a href="https://github.com/JMAConsulting/civicrm-core/commit/2eeb15fc142355f6e64e3b156f3e78e2e252b37e" rel="nofollow">https://github.com/JMAConsulting/civicrm-core/commit/2eeb15fc142355f6e64e3b156f3e78e2e252b37e</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-14T14:17:58.950Z
Answers.Text: Will check that today and try adding organisation with the dedupe rule posted in the original message.
Answers.UserDisplayName: benoit.dubuc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-15T15:05:21.343Z
Answers.Text: We tested the patch with the scenario written about and I confirm the problem is now fixed.
Answers.UserDisplayName: benoit.dubuc
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-10T20:06:47.270Z
Answers.LastActivityDate: 2016-03-10T20:06:47.270Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>@benoit.dubuc as discussed on phone you've identified a bug. I've replicated this and created an issue for it <a href="https://issues.civicrm.org/jira/browse/CRM-18163" rel="nofollow">https://issues.civicrm.org/jira/browse/CRM-18163</a>. Thanks for offering to fund fixing it and creating an automated test to ensure it doesn't reappear. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-04T17:53:01.790Z
Answers.LastActivityDate: 2016-03-04T17:53:01.790Z
Answers.UserDisplayName: Joe Murray
Body: <p>Our unsupervised rule for organizations is Organization name with a weight of 10 and the Postal Code length of 3 with a weight of 10 and a weight threshold of 20. We wanted to test behavior on a Membership signup form with the 'On behalf of my organization' option. For the organization data section, we entered different organizations with the same organization name but different postal codes first 3 characters and different emails. Everytime the organization data was updated. We thought it was supposed to recognize they were separate organizations create new records but it didn't.</p>
  
  <p>We looked around and listened many times to the Civiteacher tutorials on dupes but it looks we are missing something.</p>
  
  <p>In our project we have teachers buying reading clubs memberships for their classes on behalf of a school. It does occur that accross Canada we have different schools with the same name, but their postal code will differ. In that case we want to have different organization records created when people use the membership sign up form.</p>
  
  <p>Are there references around that could explain what we are not understanding well or doing wrong?</p>
  
  <p>Using CiviCRM 4.7.1 with Drupal 7.</p>
  
Tags: <civimember><duplicate-contacts>
Title: Dedupe rule for organization always firing on membership signup form
ThreadText: # Dedupe rule for organization always firing on membership signup form
  
  (Asked by: username_0 on 2016-03-04)
  
  Our unsupervised rule for organizations is Organization name with a weight of 10 and the Postal Code length of 3 with a weight of 10 and a weight threshold of 20. We wanted to test behavior on a Membership signup form with the 'On behalf of my organization' option. For the organization data section, we entered different organizations with the same organization name but different postal codes first 3 characters and different emails. Everytime the organization data was updated. We thought it was supposed to recognize they were separate organizations create new records but it didn't.
  
  We looked around and listened many times to the Civiteacher tutorials on dupes but it looks we are missing something.
  
  In our project we have teachers buying reading clubs memberships for their classes on behalf of a school. It does occur that accross Canada we have different schools with the same name, but their postal code will differ. In that case we want to have different organization records created when people use the membership sign up form.
  
  Are there references around that could explain what we are not understanding well or doing wrong?
  
  Using CiviCRM 4.7.1 with Drupal 7.
  
  **Tags:** civimember, duplicate-contacts
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2016-03-10. Score: 0 | Accepted answer
  
  @username_0 can you please test by applying patch from <https://github.com/JMAConsulting/civicrm-core/commit/2eeb15fc142355f6e64e3b156f3e78e2e252b37e>
  
  > **Comments:**
  > **username_0**: Will check that today and try adding organisation with the dedupe rule posted in the original message.  
  > **username_0**: We tested the patch with the scenario written about and I confirm the problem is now fixed.  
  
  ---
  
  ### Answer by username_2 on 2016-03-04. Score: 2
  
  @username_0 as discussed on phone you've identified a bug. I've replicated this and created an issue for it <https://issues.civicrm.org/jira/browse/CRM-18163>. Thanks for offering to fund fixing it and creating an automated test to ensure it doesn't reappear.
  
  
  ---
  
  