Skip to content

Commit f2d5b05

Browse files
ananelsoneleith
authored andcommitted
Add DiscussionID to values returned when saving discussion.
1 parent 06a5348 commit f2d5b05

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

controllers/class.discussioncontroller.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public function Add()
4747
$Errors[] = 'You do not have permission to start discussions in this category';
4848
else
4949
$DiscussionID = $this->DiscussionModel->Save($FormValues, $this->CommentModel);
50+
$this->SetJSON("DiscussionID", $DiscussionID);
5051
}
5152
else
5253
$Errors[] = 'You do not have credentials to post as this user';

0 commit comments

Comments
 (0)