mirror of
https://github.com/Karaka-Management/oms-Kanban.git
synced 2026-01-11 11:28:42 +00:00
Automated formatting changes
This commit is contained in:
parent
527e540fe5
commit
084a09d542
|
|
@ -87,7 +87,7 @@ final class ApiController extends Controller
|
|||
$card->name = (string) ($request->getData('title'));
|
||||
$card->descriptionRaw = (string) ($request->getData('plain') ?? '');
|
||||
$card->description = Markdown::parse((string) ($request->getData('plain') ?? ''));
|
||||
$card->style = (string) ($request->getData('style') ?? '');
|
||||
$card->style = (string) ($request->getData('style') ?? '');
|
||||
$card->setColumn((int) $request->getData('column'));
|
||||
$card->setOrder((int) ($request->getData('order') ?? 1));
|
||||
$card->setRef((int) ($request->getData('ref') ?? 0));
|
||||
|
|
@ -335,7 +335,7 @@ final class ApiController extends Controller
|
|||
private function updateBoardFromRequest(RequestAbstract $request) : KanbanBoard
|
||||
{
|
||||
/** @var KanbanBoard $board */
|
||||
$board = KanbanBoardMapper::get((int) $request->getData('id'));
|
||||
$board = KanbanBoardMapper::get((int) $request->getData('id'));
|
||||
$board->name = $request->getData('title') ?? $board->name;
|
||||
$board->description = Markdown::parse((string) ($request->getData('plain') ?? $board->descriptionRaw));
|
||||
$board->descriptionRaw = (string) ($request->getData('plain') ?? $board->descriptionRaw);
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ final class KanbanBoardMapper extends DataMapperAbstract
|
|||
'kanban_board_descraw' => ['name' => 'kanban_board_descraw', 'type' => 'string', 'internal' => 'descriptionRaw'],
|
||||
'kanban_board_status' => ['name' => 'kanban_board_status', 'type' => 'int', 'internal' => 'status'],
|
||||
'kanban_board_order' => ['name' => 'kanban_board_order', 'type' => 'int', 'internal' => 'order'],
|
||||
'kanban_board_style' => ['name' => 'kanban_board_style', 'type' => 'string', 'internal' => 'style'],
|
||||
'kanban_board_style' => ['name' => 'kanban_board_style', 'type' => 'string', 'internal' => 'style'],
|
||||
'kanban_board_created_by' => ['name' => 'kanban_board_created_by', 'type' => 'int', 'internal' => 'createdBy', 'readonly' => true],
|
||||
'kanban_board_created_at' => ['name' => 'kanban_board_created_at', 'type' => 'DateTimeImmutable', 'internal' => 'createdAt', 'readonly' => true],
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user