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) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • dedupe rules length field
Pages: [1]

Author Topic: dedupe rules length field  (Read 745 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
dedupe rules length field
June 05, 2010, 10:52:04 am
i think there could be some improvements to how the dedupe rules work.
currently, if you define a rule with a length, that's a firm requirement for the match. which means if the string length is *less* than the rule length, it doesn't match.

for example, if i configure last name, length = 5, two records with the last name "Kim" will not match -- there are only three characters, and therefore they don't meet the five character rule.

I think the behavior should be tweaked so that if the string length >= rule length, then compare. if less than, just do a full string match.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Piotr Szotkowski

  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: dedupe rules length field
June 07, 2010, 11:38:06 am
Quote from: lcdweb on June 05, 2010, 10:52:04 am
if i configure last name, length = 5, two records with the last name "Kim" will not match -- there are only three characters, and therefore they don't meet the five character rule.

Argh, this is obviously idiotic behaviour – except I can’t reproduce it, neither on 3.1 nor on 3.2. :( Can you give me step-by-step instructions, and/or verify on our demo (CiviCRM 3.1) or sandbox (CiviCRM 3.2) installs?

What I did was to change both fuzzy and strict individual rules to first name (weight 5) + last name (length 5, weight 7) + threshold of 12, and when I try to save a second Kim I’m pinged to verify possible dupe…
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • dedupe rules length field

This forum was archived on 2017-11-26.