Добавление нового типа сущности, добавление владельца проект в список пользователей проекта

This commit is contained in:
2024-02-12 22:56:40 +03:00
parent 32a7f483fb
commit 1a250c4b00
4 changed files with 26 additions and 4 deletions

View File

@ -197,7 +197,7 @@ class ProjectController extends ApiController
->one();
if (empty($projectTaskCategory)) {
throw new NotFoundHttpException('The project not found');
throw new BadRequestHttpException('This user cannot be added to the project');
}
$projectTaskCategory->title = Yii::$app->request->post('new_title');