Commit 491bb57f authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review

Merge "Bug 1729423: publish correct private comment in the list"

parents 93308635 9f98b2d7
......@@ -83,7 +83,7 @@ else {
}
// 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')));
}
else if (param_exists('delete_comment_submit')) {
......
......@@ -53,7 +53,7 @@ class PluginBlocktypeComment extends MaharaCoreBlocktype {
$offset = param_integer('offset', 0);
$showcomment = param_integer('showcomment', null);
// 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')));
}
else if (param_exists('delete_comment_submit')) {
......
......@@ -107,7 +107,7 @@ $offset = param_integer('offset', 0);
$showcomment = param_integer('showcomment', null);
// 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')));
}
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