From e7d10ac7619ba4dcd3cf61eb846c2ed2583613e1 Mon Sep 17 00:00:00 2001 From: Andreas Nielsen Date: Wed, 15 Nov 2023 09:39:07 +0100 Subject: [PATCH] DDFLSBP-150 - Added -config suffix to expiration-warning-days-before --- .../custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php | 2 +- web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php | 2 +- .../dpl_reservations/src/Plugin/Block/ReservationListBlock.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php b/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php index bead0d8d5..721597775 100644 --- a/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php +++ b/web/modules/custom/dpl_dashboard/src/Plugin/Block/DashboardBlock.php @@ -85,7 +85,7 @@ public function build(): array { // Config. 'page-size-desktop' => $dashboardSettings->get('page_size_desktop') ?? DplDashboardSettings::PAGE_SIZE_DESKTOP, 'page-size-mobile' => $dashboardSettings->get('page_size_mobile') ?? DplDashboardSettings::PAGE_SIZE_MOBILE, - 'expiration-warning-days-before' => $generalSettings->get('expiration_warning_days_before_config') ?? GeneralSettingsForm::EXPIRATION_WARNING_DAYS_BEFORE_CONFIG, + 'expiration-warning-days-before-config' => $generalSettings->get('expiration_warning_days_before_config') ?? GeneralSettingsForm::EXPIRATION_WARNING_DAYS_BEFORE_CONFIG, 'interest-periods-config' => DplReactAppsController::getInterestPeriods(), 'reservation-detail-allow-remove-ready-reservations-config' => $generalSettings->get('reservation_detail_allow_remove_ready_reservations') ?? GeneralSettingsForm::RESERVATION_DETAIL_ALLOW_REMOVE_READY_RESERVATIONS, 'blacklisted-pickup-branches-config' => DplReactAppsController::buildBranchesListProp($this->branchSettings->getExcludedReservationBranches()), diff --git a/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php b/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php index b37efac98..4b88677a8 100644 --- a/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php +++ b/web/modules/custom/dpl_loans/src/Plugin/Block/LoanListBlock.php @@ -87,7 +87,7 @@ public function build() { "page-size-mobile" => $loanListSettings->get('page_size_mobile') ?? DplLoansSettings::PAGE_SIZE_MOBILE, // Config. - "expiration-warning-days-before" => $generalSettings->get('expiration_warning_days_before_config') ?? GeneralSettingsForm::EXPIRATION_WARNING_DAYS_BEFORE_CONFIG, + "expiration-warning-days-before-config" => $generalSettings->get('expiration_warning_days_before_config') ?? GeneralSettingsForm::EXPIRATION_WARNING_DAYS_BEFORE_CONFIG, // Urls. 'ereolen-my-page-url' => dpl_react_apps_format_app_url($generalSettings->get('ereolen_my_page_url'), GeneralSettingsForm::EREOLEN_MY_PAGE_URL), diff --git a/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php b/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php index 5f9ce95e9..9028d4e40 100644 --- a/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php +++ b/web/modules/custom/dpl_reservations/src/Plugin/Block/ReservationListBlock.php @@ -100,7 +100,7 @@ public function build(): array { 'reservation-details-config' => json_encode([ 'allowRemoveReadyReservations' => $allow_remove_ready_reservations, ]), - 'expiration-warning-days-before' => $generalSettings->get('expiration_warning_days_before_config') ?? GeneralSettingsForm::EXPIRATION_WARNING_DAYS_BEFORE_CONFIG, + 'expiration-warning-days-before-config' => $generalSettings->get('expiration_warning_days_before_config') ?? GeneralSettingsForm::EXPIRATION_WARNING_DAYS_BEFORE_CONFIG, // Texts. 'material-and-author-text' => $this->t('and', [], ['context' => 'Reservation list']),