diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index fdd80d916..ce05a5ecb 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -4,6 +4,7 @@ - Stats now send over SSL rather than straight HTTP. - fixed #8914: epoch for calendar/List View for Calendar - fixed #10044: Gallery: Javascript, CSS included in body + - fixed #10409: Problem using hash in metadata possible values 7.7.7 - Added EMS Schedule table diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 847ed0614..78440d86d 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -842,27 +842,28 @@ adding additional tabs. =cut sub getEditForm { - my $self = shift; - my $i18n = WebGUI::International->new($self->session, "Asset"); + my $self = shift; + my $session = $self->session; + my $i18n = WebGUI::International->new($session, "Asset"); my $ago = $i18n->get("ago"); - my $tabform = WebGUI::TabForm->new($self->session,undef,undef,$self->getUrl()); - my $overrides = $self->session->config->get("assets/".$self->get("className")); + my $tabform = WebGUI::TabForm->new($session,undef,undef,$self->getUrl()); + my $overrides = $session->config->get("assets/".$self->get("className")); # Set the appropriate URL # If we're adding a new asset, don't set anything - if ( $self->session->form->get( "func" ) ne "add" ) { + if ( $session->form->get( "func" ) ne "add" ) { $tabform->formHeader( { action => $self->getUrl, method => "POST" } ); } - if ($self->session->config->get("enableSaveAndCommit")) { - $tabform->submitAppend(WebGUI::Form::submit($self->session, { + if ($session->config->get("enableSaveAndCommit")) { + $tabform->submitAppend(WebGUI::Form::submit($session, { name => "saveAndCommit", value => $i18n->get("save and commit"), })); } $tabform->submitAppend( - WebGUI::Form::submit ( $self->session, { + WebGUI::Form::submit ( $session, { name => "saveAndReturn", value => $i18n->get( "apply" ), } ) @@ -876,7 +877,7 @@ sub getEditForm { my $class; if ($self->getId eq "new") { $assetId = "new"; - $class = $self->session->form->process("class","className"); + $class = $session->form->process("class","className"); } else { # revision history @@ -884,13 +885,13 @@ sub getEditForm { $class = $self->get('className'); my $ac = $self->getAdminConsole; $ac->addSubmenuItem($self->getUrl("func=manageRevisions"),$i18n->get("revisions").":"); - my $rs = $self->session->db->read("select revisionDate from assetData where assetId=? order by revisionDate desc limit 5", [$assetId]); + my $rs = $session->db->read("select revisionDate from assetData where assetId=? order by revisionDate desc limit 5", [$assetId]); while (my ($version) = $rs->array) { - my ($interval, $units) = $self->session->datetime->secondsToInterval(time() - $version); + my ($interval, $units) = $session->datetime->secondsToInterval(time() - $version); $ac->addSubmenuItem($self->getUrl("func=edit;revision=".$version), $interval." ".$units." ".$ago); } } - if ($self->session->form->process("proceed")) { + if ($session->form->process("proceed")) { $tabform->hidden({ name=>"proceed", value=>$self->session->form->process("proceed") @@ -915,7 +916,7 @@ sub getEditForm { } # process errors - my $errors = $self->session->stow->get('editFormErrors'); + my $errors = $session->stow->get('editFormErrors'); if ($errors) { $tabform->getTab("properties")->readOnly( -value=>"
Some error(s) occurred: