Skip to content

Commit 1a1297e

Browse files
authored
Merge pull request #217 from learnweb/fix/markpostunread
Fix: mark post as read, deleting posts
2 parents 8d1ac04 + e6d3763 commit 1a1297e

File tree

5 files changed

+197
-170
lines changed

5 files changed

+197
-170
lines changed

classes/post/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public function moodleoverflow_add_new_post() {
259259

260260
// Add post to the database.
261261
$this->id = $DB->insert_record('moodleoverflow_posts', $this->build_db_object());
262-
$this->moodleoverflow_add_attachment($this, $this->get_moodleoverflow(), $this->get_coursemodule());
262+
$this->moodleoverflow_add_attachment();
263263

264264
if ($this->reviewed) {
265265
// Update the discussion.

0 commit comments

Comments
 (0)