Add a template variable to hide the subscribe form when editing a Post when the user is subscribed to the parent CS. Updated all PostForm templates to use this new variable. Fixes bug #11626.

This commit is contained in:
Colin Kuskie 2010-06-22 08:06:25 -07:00
parent 05610f7621
commit da320a0313
5 changed files with 9 additions and 0 deletions

View file

@ -1633,6 +1633,7 @@ sub www_edit {
$var{'archive.form'} = WebGUI::Form::yesNo($session, {
name=>"archive"
});
$var{'isSubscribedToCs'} = $self->getThread->getParent->isSubscribed;
$var{'form.header'} .= WebGUI::Form::hidden($session, {
name=>"proceed",
value=>"showConfirmation"