mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-02-17 12:48:41 +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
|
public function apiKanbanBoardUpdate(RequestAbstract $request, ResponseAbstract $response, array $data = []) : void
|
||||||
{
|
{
|
||||||
/** @var \Modules\Kanban\Models\KanbanBoard $old */
|
/** @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);
|
$new = $this->updateBoardFromRequest($request, clone $old);
|
||||||
|
|
||||||
$this->updateModel($request->header->account, $old, $new, KanbanBoardMapper::class, 'board', $request->getOrigin());
|
$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/commentList/comments')
|
||||||
->with('columns/cards/tags')
|
->with('columns/cards/tags')
|
||||||
->with('columns/cards/tags/title')
|
->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)
|
->where('columns/cards/tags/title/language', $request->header->l11n->language)
|
||||||
->sort('columns/order', OrderType::ASC)
|
->sort('columns/order', OrderType::ASC)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
@ -161,7 +161,7 @@ final class BackendController extends Controller
|
||||||
|
|
||||||
$view->data['board'] = KanbanBoardMapper::get()
|
$view->data['board'] = KanbanBoardMapper::get()
|
||||||
->with('columns')
|
->with('columns')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', $request->getDataInt('id') ?? 0)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
if ($view->data['board']->id === 0) {
|
if ($view->data['board']->id === 0) {
|
||||||
|
|
@ -267,7 +267,7 @@ final class BackendController extends Controller
|
||||||
->with('commentList/comments')
|
->with('commentList/comments')
|
||||||
->with('commentList/comments/files')
|
->with('commentList/comments/files')
|
||||||
->with('commentList/comments/createdBy')
|
->with('commentList/comments/createdBy')
|
||||||
->where('id', (int) $request->getData('id'))
|
->where('id', $request->getDataInt('id') ?? 0)
|
||||||
->where('tags/title/language', $response->header->l11n->language)
|
->where('tags/title/language', $response->header->l11n->language)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -88,11 +88,11 @@ $commentList = $card->commentList;
|
||||||
if ($this->data['commentPermissions']['write']
|
if ($this->data['commentPermissions']['write']
|
||||||
&& $commentList?->status === CommentListStatus::ACTIVE
|
&& $commentList?->status === CommentListStatus::ACTIVE
|
||||||
) :
|
) :
|
||||||
echo $this->getData('commentCreate')->render(1);
|
echo $this->data['commentCreate']->render(1);
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
if ($this->data['commentPermissions']['list_modify']
|
if ($this->data['commentPermissions']['list_modify']
|
||||||
|| ($this->data['commentPermissions']['list_read'] && $commentList->status !== CommentListStatus::INACTIVE)
|
|| ($this->data['commentPermissions']['list_read'] && $commentList->status !== CommentListStatus::INACTIVE)
|
||||||
) :
|
) :
|
||||||
echo $this->getData('commentList')->render($commentList);
|
echo $this->data['commentList']->render($commentList);
|
||||||
endif;
|
endif;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user