Hi there,
I believe I've found a minor glitch in the GT::SQL::Table::_check_insert routine.
On about line 1897 is this line:
$self->warn(NOTNULL => $col->{form_display} || $c);
presumably this loads into self that the column can't be left blank
BUT,
that happens again because:
sub _check_insert later on calls
sub check_values which calls
sub _check_update which calls
sub _check_value And this routine starts by checking for notnull values also and writes:
$self->warn(NOTNULL => $column->{form_display} || $name);
The result is that when running check insert any missing fields are included twice. So in $db->error we end up with:
peace.
I believe I've found a minor glitch in the GT::SQL::Table::_check_insert routine.
On about line 1897 is this line:
$self->warn(NOTNULL => $col->{form_display} || $c);
presumably this loads into self that the column can't be left blank
BUT,
that happens again because:
sub _check_insert later on calls
sub check_values which calls
sub _check_update which calls
sub _check_value And this routine starts by checking for notnull values also and writes:
$self->warn(NOTNULL => $column->{form_display} || $name);
The result is that when running check insert any missing fields are included twice. So in $db->error we end up with:
- Column Title can not be left blank
- Column Description can not be left blank
- Column Title can not be left blank
- Column Description can not be left blank
peace.