From bd84f715ea5d55dfdaa71a2cdc2ab68ac66ab0b8 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 1 Jun 2013 15:42:15 +0200 Subject: [PATCH] Fixed exception when creating new templates --- wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php index 6e18e635e0..10b6abb865 100644 --- a/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/TemplateAddForm.class.php @@ -183,7 +183,7 @@ class TemplateAddForm extends AbstractForm { parent::save(); if (empty($this->application)) { - $this->application = Package::getAbbreviation(PackageCache::getInstance()->getPackage($this->packageID)); + $this->application = Package::getAbbreviation(PackageCache::getInstance()->getPackage($this->packageID)->package); } $this->objectAction = new TemplateAction(array(), 'create', array('data' => array( -- 2.20.1