Skip to content

Commit

Permalink
Add a template variable to hide the subscribe form when editing a Pos…
Browse files Browse the repository at this point in the history
…t when the user is subscribed to the parent CS. Updated all PostForm templates to use this new variable. Fixes bug #11626.
  • Loading branch information
perlDreamer committed Jun 22, 2010
1 parent 8145061 commit 4f6fa4e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/7.x.x.txt
Expand Up @@ -10,6 +10,7 @@
- fixed #11658: tmpl var message missing in template help for the cart
- fixed #11628: Message Board: Last Post doesn't show up in CS Thread List
- fixed #11646: Post and Thread Last Post
- fixed #11626: Duplicate messages from Collab Systems

7.8.21
- fixed #11597: manageTrash and newlines
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions lib/WebGUI/Asset/Post.pm
Expand Up @@ -1673,6 +1673,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"
Expand Down
1 change: 1 addition & 0 deletions lib/WebGUI/Help/Asset_Post.pm
Expand Up @@ -27,6 +27,7 @@ our $HELP = {
{ 'name' => 'reply.synopsis' },
{ 'name' => 'reply.content' },
{ 'name' => 'reply.userDefinedN' },
{ 'name' => 'isSubscribedToCs' },
{ 'name' => 'subscribe.form' },
{ 'name' => 'isNewThread' },
{ 'name' => 'archive.form' },
Expand Down
6 changes: 6 additions & 0 deletions lib/WebGUI/i18n/English/Asset_Post.pm
Expand Up @@ -48,6 +48,12 @@ editing an existing Post.|,
lastUpdated => 1149829706,
},

'isSubscribedToCs' => {
message => q|A boolean which will be true if the current user is subscribed to the CS containing this Post.|,
context => q|Template variable description|,
lastUpdated => 1149829706,
},

'subscribe.form' => {
message => q|A yes/no button to allow the user to subscribe to the thread this post belongs to.|,
lastUpdated => 1149829706,
Expand Down

0 comments on commit 4f6fa4e

Please sign in to comment.