From 74a0a540162d30b90a54a904434df7590033eacd Mon Sep 17 00:00:00 2001 From: HeuJung Date: Tue, 4 Aug 2026 09:45:00 +0900 Subject: [PATCH] =?UTF-8?q?fix(gdpr):=20=EC=83=81=ED=95=9C=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D=EC=97=90=EC=84=9C=20=ED=8E=98=EC=9D=B4=EC=A0=80?= =?UTF-8?q?=EA=B0=80=20=EC=A0=91=ED=9E=88=EB=8D=98=20=EC=9E=90=EB=A6=AC=20?= =?UTF-8?q?=EC=A0=95=ED=95=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 동의 이력과 정책 버전 발행 이력의 페이저가 마지막 페이지 번호 하나에 의존하고 있었다. 총 건수를 끝까지 세지 못한 목록에서는 그 값이 없어, 페이저 노출 조건이 거짓이 되어 통째로 사라지거나 "다음" 이 첫 페이지부터 비활성이었다. 마지막 페이지를 아는 경우의 동작은 종전과 같고, 모르는 경우에만 다음 페이지 존재 여부로 판정한다. 표시용 마지막 페이지 번호는 지어내지 않는다. --- plugins/_bundled/sirsoft-gdpr/CHANGELOG.md | 1 + .../resources/layouts/admin/gdpr_consent_log.json | 3 ++- .../resources/layouts/admin/plugin_settings.json | 10 +++++----- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/_bundled/sirsoft-gdpr/CHANGELOG.md b/plugins/_bundled/sirsoft-gdpr/CHANGELOG.md index ddfde8af..b48f25f9 100644 --- a/plugins/_bundled/sirsoft-gdpr/CHANGELOG.md +++ b/plugins/_bundled/sirsoft-gdpr/CHANGELOG.md @@ -46,6 +46,7 @@ - 비회원으로 쿠키 배너를 닫은 뒤 동의 이력이 없는 다른 계정으로 로그인하면 배너가 계속 숨겨져 있던 문제를 바로잡았습니다 — 이제 로그인한 계정 기준으로 다시 판단해 배너가 정상적으로 노출됩니다. - 관리자 환경설정의 「운영 주체」·「쿠키 동의 배너」·「자동 차단 정책」 카드 제목과 차단 도메인 안내 문구가 빨간색(경고 색상)으로 표시되던 문제를 바로잡았습니다 — 일반 안내에도 경고 색상이 쓰여 어색하게 강조되던 부분을 다른 관리자 화면과 동일한 색상으로 정리했습니다. +- 「GDPR 동의 이력」과 정책 버전 발행 이력에서 기록이 아주 많아 총 건수를 끝까지 세지 못하면 페이지 이동이 막히던 문제를 수정했습니다. 마지막 페이지로 바로 뛰는 버튼만 감춰지고 이전·다음 이동은 그대로 동작합니다. ## [1.0.1] - 2026-07-16 ### Changed diff --git a/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/gdpr_consent_log.json b/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/gdpr_consent_log.json index 4e11615e..9bebf3a7 100644 --- a/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/gdpr_consent_log.json +++ b/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/gdpr_consent_log.json @@ -1163,7 +1163,8 @@ "pagination": true, "serverSidePagination": true, "serverCurrentPage": "{{gdprConsentLog?.data?.pagination?.current_page ?? 1}}", - "serverTotalPages": "{{gdprConsentLog?.data?.pagination?.last_page ?? 1}}", + "serverTotalPages": "{{gdprConsentLog?.data?.pagination?.last_page ?? null}}", + "serverHasMorePages": "{{gdprConsentLog?.data?.pagination?.has_more_pages ?? false}}", "pageSize": "{{+(query.per_page || 20)}}", "alwaysShowPagination": true, "idField": "id", diff --git a/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/plugin_settings.json b/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/plugin_settings.json index a043f990..570d1485 100644 --- a/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/plugin_settings.json +++ b/plugins/_bundled/sirsoft-gdpr/resources/layouts/admin/plugin_settings.json @@ -1181,7 +1181,7 @@ "comment": "이력 페이저 — 총건수/현재 페이지를 함께 표시한다. 없으면 최신 20건만 보이고 나머지가 조용히 잘린다.", "type": "basic", "name": "Div", - "if": "{{(gdprPolicyVersionHistory?.data?.pagination?.last_page ?? 1) > 1}}", + "if": "{{((gdprPolicyVersionHistory?.data?.pagination?.last_page ?? 0) > 1) || (gdprPolicyVersionHistory?.data?.pagination?.has_more_pages === true) || ((gdprPolicyVersionHistory?.data?.pagination?.current_page ?? 1) > 1)}}", "props": { "className": "flex items-center justify-between gap-3 pt-3 mt-3 border-t border-gray-200 dark:border-gray-700" }, @@ -1192,7 +1192,7 @@ "props": { "className": "text-label-subtle text-sm" }, - "text": "$t:sirsoft-gdpr.settings.policy_version.history_page_summary|current={{gdprPolicyVersionHistory?.data?.pagination?.current_page ?? 1}}|last={{gdprPolicyVersionHistory?.data?.pagination?.last_page ?? 1}}|total={{gdprPolicyVersionHistory?.data?.pagination?.total ?? 0}}" + "text": "$t:sirsoft-gdpr.settings.policy_version.history_page_summary|current={{gdprPolicyVersionHistory?.data?.pagination?.current_page ?? 1}}|last={{gdprPolicyVersionHistory?.data?.pagination?.last_page ?? '-'}}|total={{gdprPolicyVersionHistory?.data?.pagination?.total ?? 0}}" }, { "type": "basic", @@ -1220,7 +1220,7 @@ "handler": "setState", "params": { "target": "local", - "policyHistoryPage": "{{Math.min(Math.max(1, (_local.policyHistoryPage ?? 1) + (-1)), gdprPolicyVersionHistory?.data?.pagination?.last_page ?? 1)}}" + "policyHistoryPage": "{{gdprPolicyVersionHistory?.data?.pagination?.last_page ? Math.min(Math.max(1, (_local.policyHistoryPage ?? 1) + (-1)), gdprPolicyVersionHistory?.data?.pagination?.last_page) : Math.max(1, (_local.policyHistoryPage ?? 1) + (-1))}}" } }, { @@ -1240,7 +1240,7 @@ "props": { "type": "button", "className": "btn btn-sm btn-neutral", - "disabled": "{{(gdprPolicyVersionHistory?.data?.pagination?.current_page ?? 1) >= (gdprPolicyVersionHistory?.data?.pagination?.last_page ?? 1)}}" + "disabled": "{{gdprPolicyVersionHistory?.data?.pagination?.last_page ? ((gdprPolicyVersionHistory?.data?.pagination?.current_page ?? 1) >= gdprPolicyVersionHistory?.data?.pagination?.last_page) : (gdprPolicyVersionHistory?.data?.pagination?.has_more_pages !== true)}}" }, "text": "$t:sirsoft-gdpr.settings.policy_version.history_next", "actions": [ @@ -1252,7 +1252,7 @@ "handler": "setState", "params": { "target": "local", - "policyHistoryPage": "{{Math.min(Math.max(1, (_local.policyHistoryPage ?? 1) + (1)), gdprPolicyVersionHistory?.data?.pagination?.last_page ?? 1)}}" + "policyHistoryPage": "{{gdprPolicyVersionHistory?.data?.pagination?.last_page ? Math.min(Math.max(1, (_local.policyHistoryPage ?? 1) + (1)), gdprPolicyVersionHistory?.data?.pagination?.last_page) : Math.max(1, (_local.policyHistoryPage ?? 1) + (1))}}" } }, {