Commit 61f5dabf authored by Florian Azizian's avatar Florian Azizian

FEAT #11270 TIME 0:10 customFields default_values + order by label

parent c2494434
......@@ -37,7 +37,7 @@
"devDependencies": {
"@angular-devkit/build-angular": "^0.803.0",
"@angular/animations": "^8.2.3",
"@angular/cdk": "^8.1.4",
"@angular/cdk": "^8.2.0",
"@angular/cli": "^8.3.0",
"@angular/common": "^8.2.3",
"@angular/compiler": "^8.2.3",
......@@ -45,7 +45,7 @@
"@angular/core": "^8.2.3",
"@angular/forms": "^8.2.3",
"@angular/http": "^7.2.15",
"@angular/material": "^8.1.4",
"@angular/material": "^8.2.0",
"@angular/platform-browser": "^8.2.3",
"@angular/platform-browser-dynamic": "^8.2.3",
"@angular/platform-server": "^8.2.3",
......
......@@ -69,7 +69,7 @@ class CustomFieldController
'default_value' => $body['default_value']
]);
return $response->withStatus(204)->withJson(['customFieldId' => $id]);
return $response->withStatus(201)->withJson(['customFieldId' => $id]);
}
public function update(Request $request, Response $response, array $args)
......
......@@ -29,7 +29,7 @@ class CustomFieldControllerTest extends TestCase
$fullRequest = \httpRequestCustom::addContentInBody($args, $request);
$response = $customFieldController->create($fullRequest, new \Slim\Http\Response());
$this->assertSame(204, $response->getStatusCode());
$this->assertSame(201, $response->getStatusCode());
$responseBody = json_decode((string)$response->getBody());
$this->assertInternalType('int', $responseBody->customFieldId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment