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:
parent
05610f7621
commit
da320a0313
5 changed files with 9 additions and 0 deletions
|
|
@ -5,6 +5,7 @@
|
||||||
- fixed #11658: tmpl var message missing in template help for the cart
|
- 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 #11628: Message Board: Last Post doesn't show up in CS Thread List
|
||||||
- fixed #11646: Post and Thread Last Post
|
- fixed #11646: Post and Thread Last Post
|
||||||
|
- fixed #11626: Duplicate messages from Collab Systems
|
||||||
|
|
||||||
7.9.7
|
7.9.7
|
||||||
- added #11571: Allow return from photo edit view to gallery edit view
|
- added #11571: Allow return from photo edit view to gallery edit view
|
||||||
|
|
|
||||||
BIN
docs/upgrades/packages-7.9.8/root_import_collaboration.wgpkg
Normal file
BIN
docs/upgrades/packages-7.9.8/root_import_collaboration.wgpkg
Normal file
Binary file not shown.
|
|
@ -1633,6 +1633,7 @@ sub www_edit {
|
||||||
$var{'archive.form'} = WebGUI::Form::yesNo($session, {
|
$var{'archive.form'} = WebGUI::Form::yesNo($session, {
|
||||||
name=>"archive"
|
name=>"archive"
|
||||||
});
|
});
|
||||||
|
$var{'isSubscribedToCs'} = $self->getThread->getParent->isSubscribed;
|
||||||
$var{'form.header'} .= WebGUI::Form::hidden($session, {
|
$var{'form.header'} .= WebGUI::Form::hidden($session, {
|
||||||
name=>"proceed",
|
name=>"proceed",
|
||||||
value=>"showConfirmation"
|
value=>"showConfirmation"
|
||||||
|
|
|
||||||
|
|
@ -27,6 +27,7 @@ our $HELP = {
|
||||||
{ 'name' => 'reply.synopsis' },
|
{ 'name' => 'reply.synopsis' },
|
||||||
{ 'name' => 'reply.content' },
|
{ 'name' => 'reply.content' },
|
||||||
{ 'name' => 'reply.userDefinedN' },
|
{ 'name' => 'reply.userDefinedN' },
|
||||||
|
{ 'name' => 'isSubscribedToCs' },
|
||||||
{ 'name' => 'subscribe.form' },
|
{ 'name' => 'subscribe.form' },
|
||||||
{ 'name' => 'isNewThread' },
|
{ 'name' => 'isNewThread' },
|
||||||
{ 'name' => 'archive.form' },
|
{ 'name' => 'archive.form' },
|
||||||
|
|
|
||||||
|
|
@ -48,6 +48,12 @@ editing an existing Post.|,
|
||||||
lastUpdated => 1149829706,
|
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' => {
|
'subscribe.form' => {
|
||||||
message => q|A yes/no button to allow the user to subscribe to the thread this post belongs to.|,
|
message => q|A yes/no button to allow the user to subscribe to the thread this post belongs to.|,
|
||||||
lastUpdated => 1149829706,
|
lastUpdated => 1149829706,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue