From 2a7aea52f123df4ac79885e52f62a8da1f3b0dad Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 6 May 2021 14:02:42 +0200 Subject: [PATCH] Reset package field in language import form after saving Close #4191 --- .../install/files/lib/acp/form/LanguageImportForm.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php index fc9889bb4e..0a2433d877 100644 --- a/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/LanguageImportForm.class.php @@ -18,7 +18,7 @@ use wcf\util\XML; * Shows the language import form. * * @author Marcel Werk - * @copyright 2001-2019 WoltLab GmbH + * @copyright 2001-2021 WoltLab GmbH * @license GNU Lesser General Public License * @package WoltLabSuite\Core\Acp\Form */ @@ -66,6 +66,7 @@ class LanguageImportForm extends AbstractForm /** * @var int + * @since 5.4 */ public $packageID = 0; @@ -156,6 +157,7 @@ class LanguageImportForm extends AbstractForm // reset fields $this->sourceLanguageID = 0; + $this->packageID = 0; // show success message WCF::getTPL()->assign('success', true); -- 2.20.1