Add DiscussionID to values returned when saving discussion.

This commit is contained in:
Ana Nelson 2011-03-16 16:30:26 +00:00 committed by eleith
parent 06a5348669
commit f2d5b05777
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class DiscussionController extends APIController
$Errors[] = 'You do not have permission to start discussions in this category';
else
$DiscussionID = $this->DiscussionModel->Save($FormValues, $this->CommentModel);
$this->SetJSON("DiscussionID", $DiscussionID);
}
else
$Errors[] = 'You do not have credentials to post as this user';