Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [ridesworld] LSQL 2.20 link modification error

Quote Reply
Re: [ridesworld] LSQL 2.20 link modification error In reply to
The problem is that those links were modified before the upgrade. The following code should fix the problem (admin/Links/Tools.pm, line 686):
Code:
@@ -686,6 +686,9 @@
my $link = eval $link_data->{ChgRequest};
my $user = $user_db->get($link->{LinkOwner});
my $update_user = '';
+ foreach my $col (keys %{$db->{schema}->{cols}}) {
+ exists $link->{$col} or $link->{$col} = $db->{schema}->{cols}->{$col}->{default};
+ }
$link->{$i . "-CatLinks.CategoryID"} = $link->{'CatLinks.CategoryID'};
my $form = $html->form({ values => $link, extra_table => 0, mode => 'validate', view_key => 1, multiple => $i, file_field => 1, file_delete => 1, file_use_path => 1 });

Adrian
Subject Author Views Date
Thread LSQL 2.20 link modification error ccunet 6569 May 22, 2004, 6:31 AM
Thread Re: [ccunet] LSQL 2.20 link modification error
Andy 6086 May 22, 2004, 6:36 AM
Thread Re: [Andy] LSQL 2.20 link modification error
ccunet 6456 May 22, 2004, 7:20 AM
Thread Re: [ccunet] LSQL 2.20 link modification error
brewt 6341 May 22, 2004, 4:02 PM
Thread Re: [brewt] LSQL 2.20 link modification error
yogi 6136 May 28, 2004, 1:50 PM
Thread Re: [yogi] LSQL 2.20 link modification error
ridesworld 6124 Jun 17, 2004, 1:46 PM
Thread Re: [ridesworld] LSQL 2.20 link modification error
brewt 6195 Jun 17, 2004, 3:16 PM
Thread Re: [brewt] LSQL 2.20 link modification error
ridesworld 6090 Jun 20, 2004, 4:56 AM
Post Re: [ridesworld] LSQL 2.20 link modification error
brewt 5952 Jun 20, 2004, 5:18 PM
Thread Re: [brewt] LSQL 2.20 link modification error
ridesworld 5890 Jun 20, 2004, 10:36 AM
Thread Re: [ridesworld] LSQL 2.20 link modification error
brewt 5901 Jun 20, 2004, 5:21 PM
Thread Re: [brewt] LSQL 2.20 link modification error
VishalT 5951 Jun 20, 2004, 5:32 PM
Post Re: [NeedScripts.Com] LSQL 2.20 link modification error
brewt 5881 Jun 21, 2004, 11:46 AM