사이트·관리자 봉투 물류 기능(수불·통계·레포트·재고·발주)과 DB·메뉴·E2E를 운영 반영한다.
통계 분석(전년대비·월별·계절별), 수급계획·LOT 수불, 지정판매소·실사·메뉴 링크 등을 포함한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -8,11 +8,13 @@ $debugMode = (bool) ($debug_mode ?? false);
|
||||
$debugInfo = is_array($debug_info ?? null) ? $debug_info : [];
|
||||
helper('admin');
|
||||
$adminMenusNavPath = current_nav_request_path();
|
||||
// 사이트 메뉴(mt_code=site)는 업무 URL이 /bag/* — 관리 화면(admin/menus) 맥락으로 해석하면 admin/ 링크가 잘못 선택됨
|
||||
$menuListResolvePath = ($mtCode === 'site') ? 'bag/dashboard' : $adminMenusNavPath;
|
||||
|
||||
/**
|
||||
* 메뉴 관리 목록용: 저장된 mm_link → 실제 href (외부 http(s) 또는 base_url).
|
||||
*/
|
||||
$adminMenuListResolveHref = static function (string $rawLink) use ($adminMenusNavPath): string {
|
||||
$adminMenuListResolveHref = static function (string $rawLink) use ($menuListResolvePath): string {
|
||||
$rawLink = trim($rawLink);
|
||||
if ($rawLink === '') {
|
||||
return '';
|
||||
@@ -20,7 +22,7 @@ $adminMenuListResolveHref = static function (string $rawLink) use ($adminMenusNa
|
||||
if (preg_match('#^https?://#i', $rawLink)) {
|
||||
return $rawLink;
|
||||
}
|
||||
$pathSeg = menu_link_preferred_href_path($rawLink, $adminMenusNavPath);
|
||||
$pathSeg = menu_link_preferred_href_path($rawLink, $menuListResolvePath);
|
||||
if ($pathSeg === '') {
|
||||
$pathSeg = normalize_menu_link_for_url($rawLink);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user