4.0a + Multi Mod: Duplicates Problem

Shadow44

New member
Hi, I realise this is a tricky question, since I'm now using 4.0 alpha + alpha2zee's Multi Menu/Checkbox mod, PLUS some custom code of my own, but please see if you could comment ...

I have duplication checking enabled on one text field. DaDaBIK finds duplicates no problem. But if the duplicate is "Inserted anyway", the content of all multi-option fields is inserted as blank on the database (Normal insertion works fine).

Is it possible - alpha2zee - that the Multi Menu/Checkbox mod has somehow not taken duplication processing into account?

Clue? - In the index.php code, it appears from commented-out code that at one point the "Insert anyway" option did not re-check posted fields (whereas now it does). I'm thinking this may offer a clue.

Sincere thanks for any advice!
 

alpha2zee

Well-known member
Thanks for posting about this.

The function build_insert_duplication_form in business_logic.php has a line, in both DaDaBik 3.2 and 4.0 alpha
[pre]
$count_temp_2 = count($$field_name_temp);
[/pre]
Notice the two dollar signs; should be just one - $.

Please post if this fixes it.
 

Shadow44

New member
Great - works perfect!

I'd like to know how you found that, I certainly didn't after a couple of hours going over and over it!

Thanks so much again.
 
Top