crash backup
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled

This commit is contained in:
Dennis Eichhorn 2025-03-21 02:48:19 +00:00
parent 17ae85f835
commit 80cf043f1d
3 changed files with 6 additions and 6 deletions

View File

@ -347,7 +347,7 @@ final class ApiController extends Controller
public function apiKanbanBoardUpdate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
{
/** @var \Modules\Kanban\Models\KanbanBoard $old */
$old = KanbanBoardMapper::get()->where('id', (int) $request->getData('id'))->execute();
$old = KanbanBoardMapper::get()->where('id', $request->getDataInt('id') ?? 0)->execute();
$new = $this->updateBoardFromRequest($request, clone $old);
$this->updateModel($request->header->account, $old, $new, KanbanBoardMapper::class, 'board', $request->getOrigin());

View File

@ -112,7 +112,7 @@ final class BackendController extends Controller
->with('columns/cards/commentList/comments')
->with('columns/cards/tags')
->with('columns/cards/tags/title')
->where('id', (int) $request->getData('id'))
->where('id', $request->getDataInt('id') ?? 0)
->where('columns/cards/tags/title/language', $request->header->l11n->language)
->sort('columns/order', OrderType::ASC)
->execute();
@ -161,7 +161,7 @@ final class BackendController extends Controller
$view->data['board'] = KanbanBoardMapper::get()
->with('columns')
->where('id', (int) $request->getData('id'))
->where('id', $request->getDataInt('id') ?? 0)
->execute();
if ($view->data['board']->id === 0) {
@ -267,7 +267,7 @@ final class BackendController extends Controller
->with('commentList/comments')
->with('commentList/comments/files')
->with('commentList/comments/createdBy')
->where('id', (int) $request->getData('id'))
->where('id', $request->getDataInt('id') ?? 0)
->where('tags/title/language', $response->header->l11n->language)
->execute();

View File

@ -88,11 +88,11 @@ $commentList = $card->commentList;
if ($this->data['commentPermissions']['write']
&& $commentList?->status === CommentListStatus::ACTIVE
) :
echo $this->getData('commentCreate')->render(1);
echo $this->data['commentCreate']->render(1);
endif;
if ($this->data['commentPermissions']['list_modify']
|| ($this->data['commentPermissions']['list_read'] && $commentList->status !== CommentListStatus::INACTIVE)
) :
echo $this->getData('commentList')->render($commentList);
echo $this->data['commentList']->render($commentList);
endif;