Storage constructors need session variables

This commit is contained in:
Colin Kuskie 2006-01-18 21:43:01 +00:00
parent 4e90fb26f5
commit 1fdc49b3bf
7 changed files with 8 additions and 8 deletions

View file

@ -383,7 +383,7 @@ sub getStorageLocation {
my $self = shift;
unless (exists $self->{_storageLocation}) {
if ($self->get("storageId") eq "") {
$self->{_storageLocation} = WebGUI::Storage::Image->create;
$self->{_storageLocation} = WebGUI::Storage::Image->create($self->session);
$self->update({storageId=>$self->{_storageLocation}->getId});
} else {
$self->{_storageLocation} = WebGUI::Storage::Image->get($self->session,$self->get("storageId"));