fix(board,menu): 테넌트 게시판 수정 및 메뉴 페이지네이션 오류 수정
테넌트 게시판 수정 404 오류: - BoardService.getBoardById()에 $systemOnly 파라미터 추가 - BoardController.edit()에서 systemOnly=false로 테넌트 게시판 조회 가능 - Api/Admin/BoardController에서 show/update 메서드 테넌트 게시판 지원 - updateAnyBoard() 메서드 사용하여 시스템/테넌트 게시판 공통 수정 메뉴 페이지네이션 쿠키 값 미적용 오류: - HTMX 요청 시 htmx:configRequest 이벤트로 쿠키 값 적용 - pagination_per_page 쿠키에서 per_page 값 읽어서 요청 파라미터에 설정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -76,14 +76,19 @@ public function getActiveBoardList(): Collection
|
||||
|
||||
/**
|
||||
* 특정 게시판 조회
|
||||
*
|
||||
* @param bool $systemOnly true면 시스템 게시판만, false면 모든 게시판
|
||||
*/
|
||||
public function getBoardById(int $id, bool $withTrashed = false): ?Board
|
||||
public function getBoardById(int $id, bool $withTrashed = false, bool $systemOnly = true): ?Board
|
||||
{
|
||||
$query = Board::query()
|
||||
->systemOnly()
|
||||
->with('fields')
|
||||
->with(['fields', 'tenant:id,code,company_name'])
|
||||
->withCount('fields');
|
||||
|
||||
if ($systemOnly) {
|
||||
$query->systemOnly();
|
||||
}
|
||||
|
||||
if ($withTrashed) {
|
||||
$query->withTrashed();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user