diff options
author | Camil Staps | 2016-07-18 14:54:01 +0200 |
---|---|---|
committer | Camil Staps | 2016-07-18 14:54:01 +0200 |
commit | 4d966aa81c121286af94161e203ac2e3583ee1c0 (patch) | |
tree | e9124d5eded2a3363e2a71cb17542faa08247cff /include/assignments-edit.php | |
parent | Removed demo (diff) |
Edit assignment content
Diffstat (limited to 'include/assignments-edit.php')
-rw-r--r-- | include/assignments-edit.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/assignments-edit.php b/include/assignments-edit.php index 0e0801a..4faad64 100644 --- a/include/assignments-edit.php +++ b/include/assignments-edit.php @@ -39,6 +39,9 @@ try { case 'vat': $response->success = $assignment->setVAT($_REQUEST['value']); break; + case 'description': + $response->success = $assignment->setDescription($_REQUEST['value']); + break; default: $response->http_response_code(404); $response->success = false; @@ -56,4 +59,4 @@ try { $response->success = false; $response->message = "The assignment could not be edited due to an exception."; } -echo $response->message;
\ No newline at end of file +echo $response->message; |