mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-01-11 11:28:42 +00:00
crash backup
This commit is contained in:
parent
17ae85f835
commit
80cf043f1d
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user