From 738b3932c0cdeb11542bb0b355c828827e38a56d Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 24 Dec 2015 10:02:48 +0100 Subject: [PATCH] Fix editing newly uploaded media files --- wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php b/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php index d8a19dc87c..f610fc5027 100644 --- a/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/MediaEditForm.class.php @@ -94,9 +94,9 @@ class MediaEditForm extends AbstractForm { $contentData = $this->media->getI18nData(); if (!empty($contentData)) { - I18nHandler::getInstance()->setValues('altText', $contentData['altText']); - I18nHandler::getInstance()->setValues('caption', $contentData['caption']); - I18nHandler::getInstance()->setValues('title', $contentData['title']); + if (!empty($contentData['altText'])) I18nHandler::getInstance()->setValues('altText', $contentData['altText']); + if (!empty($contentData['caption'])) I18nHandler::getInstance()->setValues('caption', $contentData['caption']); + if (!empty($contentData['title'])) I18nHandler::getInstance()->setValues('title', $contentData['title']); } } -- 2.20.1