Gossamer Forum
Home : Products : DBMan : Customization :

limit records and special signup

Quote Reply
limit records and special signup
found a problem in database with special signup form and limit records (add a record when signing up). i discovered that the mod doesn't check for duplicate record id when using special signup form.

solution:
change:
if ($in{'add_record'}) { # don't need to worry about duplicate key if modifying

to
if ($in{'add_record'} || $in{'signup'}) { # don't need to worry about duplicate key if modifying

Quote Reply
Re: [delicia] limit records and special signup In reply to
i think the code i posted was wrong; the split vertical bars should be the word 'or'; i think i'll change if to unless $in = modify, instead of looking for add.