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:
parent
40e068e0fb
commit
c7a66861a6
1 changed files with 3 additions and 0 deletions
|
|
@ -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'));
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue