Gossamer Forum
Home : Products : Gossamer Links : Discussions :

LinkOwner breaks foreign key relation with the Use

Quote Reply
LinkOwner breaks foreign key relation with the Use
Someone has reported that error message when adding a link... I've never seen it and certainly can't recreate it, does anyone know what it refers to?

Every option on my User Options admin screen is set to No, if that makes a difference...

--Bri

Quote Reply
Re: LinkOwner breaks foreign key relation with the Use In reply to
Hi,

Try editing add.cgi around line 114:

$user_db->insert ( { Username => $email, Name => $name, Email => $email, Status => 'Not Validated', Password => $pass });
$username = $email;

to:

my $res = $user_db->insert ( { Username => $email, Name => $name, Email => $email, Status => 'Not Validated', Password => $pass });
$username = $res ? $email : '';

I think this will do the trick.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: LinkOwner breaks foreign key relation with the Use In reply to
Ta, Alex :)

I'll give it a go, but while I'm here... I actually have altered add.cgi so that status => 'Validated' and $input->{isValidated} = 'Yes';

Would that make a difference?

I have a group of trusted users on an extranet with access authenticated against another database, so I don't care what they add and don't want to be validating links.... this the change in validation rules, you see...

--Bri

Quote Reply
Re: LinkOwner breaks foreign key relation with the Use In reply to
I tried that but I am still getting the error message