Commit 9f98b2d7 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic
Browse files

Bug 1729423: publish correct private comment in the list

similar to bug 1486763

behatnotneeded

Change-Id: Iaa6e337434996303208a0445099825797e65ae3e
parent e785dd1b
...@@ -83,7 +83,7 @@ else { ...@@ -83,7 +83,7 @@ else {
} }
// Create the "make comment private form" now if it's been submitted // Create the "make comment private form" now if it's been submitted
if (param_variable('make_public_submit', null)) { if (param_exists('make_public_submit')) {
pieform(ArtefactTypeComment::make_public_form(param_integer('comment'))); pieform(ArtefactTypeComment::make_public_form(param_integer('comment')));
} }
else if (param_exists('delete_comment_submit')) { else if (param_exists('delete_comment_submit')) {
......
...@@ -53,7 +53,7 @@ class PluginBlocktypeComment extends MaharaCoreBlocktype { ...@@ -53,7 +53,7 @@ class PluginBlocktypeComment extends MaharaCoreBlocktype {
$offset = param_integer('offset', 0); $offset = param_integer('offset', 0);
$showcomment = param_integer('showcomment', null); $showcomment = param_integer('showcomment', null);
// Create the "make comment private form" now if it's been submitted // Create the "make comment private form" now if it's been submitted
if (param_variable('make_public_submit', null)) { if (param_exists('make_public_submit')) {
pieform(ArtefactTypeComment::make_public_form(param_integer('comment'))); pieform(ArtefactTypeComment::make_public_form(param_integer('comment')));
} }
else if (param_exists('delete_comment_submit')) { else if (param_exists('delete_comment_submit')) {
......
...@@ -107,7 +107,7 @@ $offset = param_integer('offset', 0); ...@@ -107,7 +107,7 @@ $offset = param_integer('offset', 0);
$showcomment = param_integer('showcomment', null); $showcomment = param_integer('showcomment', null);
// Create the "make comment private form" now if it's been submitted // Create the "make comment private form" now if it's been submitted
if (param_variable('make_public_submit', null)) { if (param_exists('make_public_submit')) {
pieform(ArtefactTypeComment::make_public_form(param_integer('comment'))); pieform(ArtefactTypeComment::make_public_form(param_integer('comment')));
} }
else if (param_exists('delete_comment_submit')) { else if (param_exists('delete_comment_submit')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment