humhub / tasks

Intuitive task management tool with many basic and advanced features.
23 stars 34 forks source link

Assigned Task Stream Bug #221

Open jayavman opened 1 year ago

jayavman commented 1 year ago

If you create a Task and do not assign a task. On the stream it assigns everyone in that Space.

If you go back into the task and assign one person to the task, then go back to the stream page. It still shows as assigned to everyone in the space.

When creating a task and not assigning anyone, It shouldn't be assigned to everyone in the space stream. It should say unassigned. If its then assigned to someone, it should have that person its assigned to and updated in the stream page.

Running : Humhub Version: 1.13.0 Tasks : 1.7.2

Sameqdev commented 1 year ago

In my case to get the second error when trying to create tasks

{ "url": "/EdenChallenge/index.php?r=tasks%2Ftask%2Fedit&cal=0&cguid=945b8fa5-c7e9-4ee8-aae3-0e2c9f3f7e8a", "status": 500, "response": "

PHP Warning 'yii\base\ErrorException' with message 'Trying to access array offset on value of type bool' \n\nin /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php:445\n\nStack trace:\n#0 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php(445): yii\base\ErrorHandler->handleError(2, 'Trying to acces...', '/home2/digwor94...', 445)\n#1 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiis...",
"textStatus": "error",
"xhr": {
"readyState": 4,
"responseText": "
PHP Warning 'yii\base\ErrorException' with message 'Trying to access array offset on value of type bool' \n\nin /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php:445\n\nStack trace:\n#0 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php(445): yii\base\ErrorHandler->handleError(2, 'Trying to acces...', '/home2/digwor94...', 445)\n#1 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php(370): yii\validators\DateValidator->parseDateValuePHP('00:00', 'H:i')\n#2 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php(343): yii\validators\DateValidator->parseDateValueFormat('00:00', 'H:i')\n#3 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php(292): yii\validators\DateValidator->parseDateValue('00:00')\n#4 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/Validator.php(260): yii\validators\DateValidator->validateAttribute(Object(humhub\modules\tasks\models\forms\TaskForm), 'start_time')\n#5 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/base/Model.php(368): yii\validators\Validator->validateAttributes(Object(humhub\modules\tasks\models\forms\TaskForm), Array)\n#6 /home2/digwor94/public_html/EdenChallenge/protected/modules/tasks/models/forms/TaskForm.php(330): yii\base\Model->validate()\n#7 /home2/digwor94/public_html/EdenChallenge/protected/modules/tasks/controllers/TaskController.php(87): humhub\modules\tasks\models\forms\TaskForm->save()\n#8 [internal function]: humhub\modules\tasks\controllers\TaskController->actionEdit(NULL, '0', false, NULL, NULL)\n#9 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)\n#10 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams(Array)\n#11 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction('edit', Array)\n#12 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('tasks/task/edit', Array)\n#13 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/base/Application.php(384): yii\web\Application->handleRequest(Object(humhub\components\Request))\n#14 /home2/digwor94/public_html/EdenChallenge/index.php(25): yii\base\Application->run()\n#15 {main}
", "status": 500, "statusText": "error" }, "dataType": "html", "html": "
PHP Warning 'yii\base\ErrorException' with message 'Trying to access array offset on value of type bool' \n\nin /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php:445\n\nStack trace:\n#0 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiisoft/yii2/validators/DateValidator.php(445): yii\base\ErrorHandler->handleError(2, 'Trying to acces...', '/home2/digwor94...', 445)\n#1 /home2/digwor94/public_html/EdenChallenge/protected/vendor/yiis...",
"error": {},
"errorThrown": "",
"validationError": false
}