1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00

Make description in user.addstatus really optional

Summary:
Fixes:

> Column 'description' cannot be null".

Test Plan:
  $ echo '{"fromEpoch": 1, "toEpoch": 2, "status": "away"}' | arc call-conduit user.addstatus

Reviewers: btrahan, epriestley

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D4189
This commit is contained in:
vrana 2012-12-14 16:32:29 -08:00
parent e4bb9255be
commit e4608470dd

View file

@ -39,7 +39,7 @@ final class ConduitAPI_user_addstatus_Method extends ConduitAPI_user_Method {
$from = $request->getValue('fromEpoch');
$to = $request->getValue('toEpoch');
$status = ucfirst($request->getValue('status'));
$description = $request->getValue('description');
$description = $request->getValue('description', '');
try {
id(new PhabricatorUserStatus())