Commit cc3390d4 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix feedback notification parameters on edit comment page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 615869f0
......@@ -95,7 +95,7 @@ $form = pieform(array(
));
function edit_comment_submit(Pieform $form, $values) {
global $viewid, $comment, $onartefact, $SESSION, $goto;
global $viewid, $comment, $SESSION, $goto;
db_begin();
......@@ -105,17 +105,11 @@ function edit_comment_submit(Pieform $form, $values) {
require_once('activity.php');
$data = (object) array(
'message' => html2text($comment->get('description')),
'view' => $viewid,
'commentid' => $comment->get('id'),
'viewid' => $viewid,
);
if ($onartefact) {
$data->onartefact = $onartefact;
}
else {
$data->onview = $viewid;
}
activity_occurred('feedback', $data);
activity_occurred('feedback', $data, 'artefact', 'comment');
db_commit();
......
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