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:
parent
e4bb9255be
commit
e4608470dd
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue