Add DiscussionID to values returned when saving discussion.
This commit is contained in:
parent
06a5348669
commit
d60423eef4
|
@ -47,6 +47,7 @@ class DiscussionController extends APIController
|
||||||
$Errors[] = 'You do not have permission to start discussions in this category';
|
$Errors[] = 'You do not have permission to start discussions in this category';
|
||||||
else
|
else
|
||||||
$DiscussionID = $this->DiscussionModel->Save($FormValues, $this->CommentModel);
|
$DiscussionID = $this->DiscussionModel->Save($FormValues, $this->CommentModel);
|
||||||
|
$this->SetJSON("DiscussionID", $DiscussionID);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
$Errors[] = 'You do not have credentials to post as this user';
|
$Errors[] = 'You do not have credentials to post as this user';
|
||||||
|
|
Reference in New Issue