|
Date: 4/25/2008 2:36 pm · Subject: Re: Data Form deletes files on resave - fix · Rating: 0
I believe I have found the problem in Form/File.pm. In the function getValueFromPost, value was never getting set properly. I replaced the line:
my $value = $self->get("value");
with:
my $value = ""; $value = $self->session->form->param($self->get('name')) if ($self->session->request);
and now my files do not get deleted on a form entry update. I hope this change does not break anything else that might use Form::File! Patch file enclosed.
-Michelle
Attached Files
|