Storage constructors need session variables
This commit is contained in:
parent
4e90fb26f5
commit
1fdc49b3bf
7 changed files with 8 additions and 8 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue