From b9532e75b01577cd89faa8755079502eb16db0d0 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Mon, 4 Jul 2022 16:09:54 +0100
Subject: [PATCH] Issue #3225381 by mikelutz, jrockowitz, yivanov, Spokje,
 larowlan, longwave, parkh, AdamPS, gcb:  PHP Notice logged when switching
 "Configuration type" in single configuration export screen

(cherry picked from commit ddd29c4ca2fcea7f1116820a00430285bd22dfea)
---
 core/modules/config/src/Form/ConfigSingleExportForm.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/config/src/Form/ConfigSingleExportForm.php b/core/modules/config/src/Form/ConfigSingleExportForm.php
index 22e0b4837f68..dc46b45814d3 100644
--- a/core/modules/config/src/Form/ConfigSingleExportForm.php
+++ b/core/modules/config/src/Form/ConfigSingleExportForm.php
@@ -136,7 +136,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $config_t
    */
   public function updateConfigurationType($form, FormStateInterface $form_state) {
     $form['config_name']['#options'] = $this->findConfiguration($form_state->getValue('config_type'));
-    unset($form['export']['#value']);
+    $form['export']['#value'] = NULL;
     return $form;
   }
 
-- 
GitLab