tons of bug fixes.
This commit is contained in:
parent
6f112057bb
commit
2069da5fdb
15 changed files with 76 additions and 61 deletions
|
|
@ -159,7 +159,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"));
|
||||
|
|
|
|||
|
|
@ -797,7 +797,7 @@ sub www_view {
|
|||
my $self = shift;
|
||||
if ($self->isDashlet) {
|
||||
return $self->session->privilege->noAccess() unless $self->canView;
|
||||
$self->session->asset = $self->getParent;
|
||||
$self->session->asset($self->getParent);
|
||||
return $self->session->asset->www_view;
|
||||
} else {
|
||||
return $self->getShortcut->www_view;
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ Returns the TabForm object that will be used in generating the edit page for thi
|
|||
sub getEditForm {
|
||||
my $self = shift;
|
||||
my $tabform = $self->SUPER::getEditForm();
|
||||
foreach my $definition (reverse @{$self->definition}) {
|
||||
foreach my $definition (reverse @{$self->definition($self->session)}) {
|
||||
my $properties = $definition->{properties};
|
||||
next unless ($definition->{autoGenerateForms});
|
||||
foreach my $fieldname (keys %{$properties}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue