Subject: | Maypole::Model::CDBI on DBI error when creating resets template to edit instead of addnew |
Maypole/Model/CDBI.pm
if (my %errors = $obj->cgi_update_errors) {
# Set it up as it was:
$r->{template_args}{cgi_params} = $r->{params};
$r->{template_args}{errors} = \%errors;
$r->{template} = "edit";
undef $obj if $creating; # Couldn't create
} else {
at least in the BeerDB demo app, edit isn't meant for and doesn't handle creation.
as far as a reproducible goes, I was playing around with an add_contraint condition which failed. I would think failing an untaint, etc would do the same.