Project API and globalActivities flag (#3564)

* expose globalActivities setting in project entity
* fix globalActivities being true by default if created via API
This commit is contained in:
Kevin Papst
2022-10-01 18:14:22 +02:00
committed by GitHub
parent 6cfcbccabc
commit 1d445d9eb6
5 changed files with 82 additions and 0 deletions

View File

@@ -433,6 +433,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'billable' => 'bool',
'color' => '@string',
'customer' => 'int',
'globalActivities' => 'bool',
'comment' => '@string',
];
@@ -445,6 +446,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'billable' => 'bool',
'color' => '@string',
'customer' => ['result' => 'object', 'type' => 'Customer'],
'globalActivities' => 'bool',
'comment' => '@string',
];
@@ -461,6 +463,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'parentTitle' => 'string',
'start' => '@datetime',
'end' => '@datetime',
'globalActivities' => 'bool',
'teams' => ['result' => 'array', 'type' => 'Team'],
'comment' => '@string',
];
@@ -478,6 +481,7 @@ abstract class APIControllerBaseTest extends ControllerBaseTest
'parentTitle' => 'string',
'start' => '@datetime',
'end' => '@datetime',
'globalActivities' => 'bool',
'teams' => ['result' => 'array', 'type' => 'Team'],
'comment' => '@string',
'budget' => 'float',