fix #10879. Form/File loses files from previous storageId.

Tested Collaboration System, and User Profile Avatar field.
This commit is contained in:
Colin Kuskie 2009-09-04 17:10:47 -07:00
parent 20c19425eb
commit 0cbc4eece1
2 changed files with 2 additions and 1 deletions

View file

@ -181,7 +181,7 @@ deleting the file if it was specified.
sub getValue {
my $self = shift;
my $value = $self->SUPER::getValue(@_);
my $value = $self->getOriginalValue;
my $storage = WebGUI::Storage->get($self->session,$value);
if (defined $storage) {
foreach my $file (@{$storage->getFiles}) {