File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ function (NotificationsConfigForm $form) use ($sourceForm) {
119119
120120 if (
121121 $ source === null
122+ || ! isset ($ kconfig [KConfig::NOTIFICATIONS_PASSWORD ])
122123 // Must be kept in sync with SourceForm.
123124 || password_hash (
124125 $ kconfig [KConfig::NOTIFICATIONS_PASSWORD ]->value ,
Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ protected function assemble(): void
100100 KConfig::transformKeyForForm (KConfig::PROMETHEUS_URL ),
101101 [
102102 'label ' => $ this ->translate ('URL ' ),
103- 'required ' => true ,
104103 'value ' => $ kconfig [KConfig::PROMETHEUS_URL ]->value ?? null ,
105104 'disabled ' => $ kconfig [KConfig::PROMETHEUS_URL ]->locked ?? false ,
106105 'ignore ' => $ kconfig [KConfig::PROMETHEUS_URL ]->locked ?? false ,
@@ -114,7 +113,7 @@ protected function assemble(): void
114113 'label ' => $ this ->translate ('Insecure ' ),
115114 'checkedValue ' => 'true ' ,
116115 'uncheckedValue ' => 'false ' ,
117- 'value ' => $ kconfig [KConfig::PROMETHEUS_INSECURE ]? ->value === 'true ' ,
116+ 'value ' => $ kconfig [KConfig::PROMETHEUS_INSECURE ]->value ?? null === 'true ' ,
118117 'disabled ' => $ kconfig [KConfig::PROMETHEUS_INSECURE ]->locked ?? false ,
119118 'ignore ' => $ kconfig [KConfig::PROMETHEUS_INSECURE ]->locked ?? false ,
120119 ]
You can’t perform that action at this time.
0 commit comments