aboutsummaryrefslogtreecommitdiff
path: root/include/contacts-edit.php
diff options
context:
space:
mode:
authorCamil Staps2016-07-27 15:47:23 +0200
committerCamil Staps2016-07-27 15:47:23 +0200
commit1449555d15916ff7987e68861b587a920463a9b0 (patch)
treed37a850d17df366518a6fa0046152e841bf82798 /include/contacts-edit.php
parentRemove payment when new value is unparsable (diff)
Edit contact languages
Diffstat (limited to 'include/contacts-edit.php')
-rw-r--r--include/contacts-edit.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/contacts-edit.php b/include/contacts-edit.php
index a2101b2..a5b3bdd 100644
--- a/include/contacts-edit.php
+++ b/include/contacts-edit.php
@@ -46,6 +46,9 @@ try {
case 'country':
$response->success = $contact->setCountry($_REQUEST['value']);
break;
+ case 'language':
+ $response->success = $contact->setLanguage($_REQUEST['value']);
+ break;
default:
$response->http_response_code(404);
$response->success = false;