From 051eacb0244e438ae8b084b951a465b9e35b7f80 Mon Sep 17 00:00:00 2001 From: Muhammad Anas Date: Fri, 18 Oct 2024 18:35:13 +0000 Subject: [PATCH] fix: certificate display behaiviour not showing date-picker for end-with-date --- cms/static/js/views/settings/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/cms/static/js/views/settings/main.js b/cms/static/js/views/settings/main.js index 4f3bf0bb27..5b7a25dbde 100644 --- a/cms/static/js/views/settings/main.js +++ b/cms/static/js/views/settings/main.js @@ -388,9 +388,6 @@ function(ValidatingView, CodeMirror, _, $, ui, DateUtils, FileUploadModel, Hides and clears the certificate available date field if a display behavior that doesn't use it is chosen. Because we are clearing it, toggling back to "end_with_date" will require re-entering the date */ - if (!this.useV2CertDisplaySettings) { - return; - } // eslint-disable-next-line prefer-const let showDatepicker = this.model.get('certificates_display_behavior') == 'end_with_date'; // eslint-disable-next-line prefer-const