Dadabik 8.3 - Dadabik 9.2.1 - Check for duplicates bug

  • Thread starter Deleted member 75341
  • Start date
D

Deleted member 75341

Guest
Hello, I'm facing a strange behaviour (bug)with check for duplicates.
Seems that check for duplication parameters looks inside all the field submitted and not only where it's assigned.

Scenario:

In config.php I've the variable $percentage_similarity = 100;

I've 2 different field:
Field_A;
Field_B;
For both I've the flag duplicate check: yes.

On Field_A I put "10" (id from a lookup table);
On Field_B no value;
Save the record.

Second time:
On Field_A I put "37" as value (id from a lookup table);
On Field_B I put "10" as text;

Saving the record a warning come out about a possible duplication and no other "10" in Field_B.
The value "10" is only present on Field_A.

This is a no sense for me since the value to check during insert is not related to the same column.
Let me know.
 

eugenio

Administrator
Staff member
Hello,
yes, this is how the check for duplication work, it checks each field having check duplication yes with all the fields having check duplication yes.
Limit the check to each column, as an option, is in the todo list but it hasn't been planned yet.
 
D

Deleted member 75341

Guest
Still a no sense because this approach give a great number of false positive with the conseguence that if the form has 20 upload field all the uploaded file will be lost and the user is forced to upload it again.

Unfortunately I treat a large number of numeric field and this approach isn't helpful.
 
Top