diff --git a/comp/workflow/profile/story/container/edit_related_story.html b/comp/workflow/profile/story/container/edit_related_story.html index 7d5dc8764..07ee7a81a 100644 --- a/comp/workflow/profile/story/container/edit_related_story.html +++ b/comp/workflow/profile/story/container/edit_related_story.html @@ -22,12 +22,18 @@ <%args> -$id +$id => undef <%init>; my $crumb = get_state_data('container_prof', 'crumb') || ''; $crumb .= ' |' if $crumb; +if ($id) { + set_state_data('container_prof', relate_to_id => $id); +} else { + $id = get_state_data('container_prof', 'relate_to_id'); +} +die "no value sent for required parameter 'id'" unless $id; <%doc>