Gossamer Forum
Quote Reply
Re: fix In reply to
Hi, you have definitely found a bug. Making the following changes should fix the problem.

In the file admin/GT/SQL/Table.pm file, around line 2808, you will see the following code.

Code:
if (exists $c->{$col}->{not_null} and $c->{$col}->{not_null} and (!exists $input->{$col} or ($input->{$col} =~ /^\s*$/))) {

Right after this line please place the following code.

Code:
if ( uc $c->{$col}->{form_type} eq 'FILE' ) {
my ( $pk ) = $self->pk();
$input->{$col} = $self->file_info( $col, $input->{$pk} ) and next;
}

This should fix the problem.
Subject Author Views Date
Thread file problem with modify ridesworld 3226 Sep 10, 2001, 1:36 PM
Thread Re: file problem with modify
pugdog 3139 Sep 10, 2001, 1:41 PM
Post Re: file problem with modify
ridesworld 3133 Sep 10, 2001, 2:06 PM
Thread Re: file problem with modify
ryel01 3150 Sep 10, 2001, 2:10 PM
Thread Re: file problem with modify
TheFox 3140 Sep 10, 2001, 7:50 PM
Post Re: [TheFox] file problem with modify
ridesworld 3122 Sep 12, 2001, 12:14 PM
Post Re: [TheFox] file problem with modify
ridesworld 3120 Sep 12, 2001, 12:14 PM
Thread Re: [ridesworld] file problem with modify
Alex 3129 Sep 12, 2001, 3:21 PM
Thread Re: fix
Aki 3110 Sep 12, 2001, 5:19 PM
Post Re: [Aki] fix
fmaurit 3096 May 30, 2002, 2:19 AM