Must set cache after updating, since the attribute clears the cache if the ids are different.
This commit is contained in:
parent
c549803777
commit
ce39ad6a14
1 changed files with 3 additions and 2 deletions
|
|
@ -184,8 +184,9 @@ sub getStorageLocation {
|
|||
my $self = shift;
|
||||
unless (exists $self->{_storageLocation}) {
|
||||
if ($self->storageId eq "") {
|
||||
$self->{_storageLocation} = WebGUI::Storage->create($self->session);
|
||||
$self->update({ storageId => $self->{_storageLocation}->getId });
|
||||
my $storage = WebGUI::Storage->create($self->session);
|
||||
$self->update({ storageId => $storage->getId });
|
||||
$self->{_storageLocation} = $storage;
|
||||
}
|
||||
else {
|
||||
$self->{_storageLocation} = WebGUI::Storage->get($self->session,$self->storageId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue