Correcion de PUT en PROJECT

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-05-14 15:56:05 -04:00
parent 2281fa7232
commit d83e2b2d46
2 changed files with 4 additions and 1 deletions

View File

@@ -63,6 +63,9 @@ class Project extends Api
public function post($prj_name, $request_data)
{
try {
if (!isset($request_data['prj_author'])) {
$request_data['prj_author'] = $this->getUserId();
}
return Adapter\BpmnWorkflow::createFromStruct($request_data);
} catch (\Exception $e) {
throw new RestException(Api::STAT_APP_EXCEPTION, $e->getMessage());