PM-4180 Return the created bookmark when a new bookmark is created.

This commit is contained in:
Dante
2015-11-25 14:20:46 -04:00
parent 5ec3c483ae
commit e10c092bb5

View File

@@ -151,6 +151,7 @@ class User extends Api
$userLoggedUid = $this->getUserId();
$user = new \ProcessMaker\BusinessModel\User();
$user->updateBookmark($userLoggedUid, $tas_uid, 'INSERT');
return array('bookmarkedTaskId'=>$tas_uid);
} catch (\Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}
@@ -169,6 +170,7 @@ class User extends Api
$userLoggedUid = $this->getUserId();
$user = new \ProcessMaker\BusinessModel\User();
$user->updateBookmark($userLoggedUid, $tas_uid, 'DELETE');
return array('unbookmarkedTaskId'=>$tas_uid);
} catch (\Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());
}