The URL for the story was changing when the story was edited. The initial

URL was based on the current asset, which is the Archive instead of the Folder.
(Archive hands off to Folder in addChild).
On following edits, no URL was passed, so one was built from the parent, which
is the Folder.
Fix this by passing in the existing URL as an hidden form param.
This commit is contained in:
Colin Kuskie 2009-03-10 00:31:19 +00:00
parent 40e068e0fb
commit c7a66861a6

View file

@ -333,6 +333,9 @@ sub getEditForm {
$var->{formHeader} .= WebGUI::Form::hidden($session, { name => 'assetId', value => 'new' })
. WebGUI::Form::hidden($session, { name => 'class', value => $form->process('class', 'className') });
}
else {
$var->{formHeader} .= WebGUI::Form::hidden($session, { name => 'url', value => $url});
}
return $self->processTemplate($var, $archive->get('editStoryTemplateId'));
}