Browse Source

Add DiscussionID to values returned when saving discussion.

master
Ana Nelson 10 years ago
committed by eleith
parent
commit
f2d5b05777
  1. 1
      controllers/class.discussioncontroller.php

1
controllers/class.discussioncontroller.php

@ -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';