use wcf\data\label\group\LabelGroupList;
use wcf\data\label\LabelAction;
use wcf\data\label\LabelEditor;
+use wcf\data\object\type\ObjectTypeCache;
use wcf\data\package\PackageCache;
use wcf\form\AbstractForm;
use wcf\system\exception\UserInputException;
));
}
+ $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.label.objectType');
+ foreach ($objectTypes as $objectType) {
+ $objectType->getProcessor()->save();
+ }
+
$this->saved();
// reset values
namespace wcf\acp\form;
use wcf\data\label\Label;
use wcf\data\label\LabelAction;
+use wcf\data\object\type\ObjectTypeCache;
use wcf\data\package\PackageCache;
use wcf\form\AbstractForm;
use wcf\system\exception\IllegalLinkException;
)));
$this->objectAction->executeAction();
+ $objectTypes = ObjectTypeCache::getInstance()->getObjectTypes('com.woltlab.wcf.label.objectType');
+ foreach ($objectTypes as $objectType) {
+ $objectType->getProcessor()->save();
+ }
+
$this->saved();
// reset values if non-custom value was choosen
// save object type relations
$this->saveObjectTypeRelations($returnValues['returnValues']->groupID);
-
+
+ foreach ($this->labelObjectTypes as $objectTypeID => $labelObjectType) {
+ $labelObjectType->save();
+ }
+
$this->saved();
// reset values
}
// no data provided and no POST data exists
- if ($data === null || !is_array($data)) {
+ /*if ($data === null || !is_array($data)) {
// nothing to do here
return;
- }
+ }*/
foreach ($this->labelObjectTypeContainers as $objectTypeID => $container) {
if ($container->isBooleanOption()) {
* Shows the label group edit form.
*
* @author Alexander Ebert
- * @copyright 2001-2012 WoltLab GmbH
+ * @copyright 2001-2013 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package com.woltlab.wcf.label
* @subpackage acp.form
// update object type relations
$this->saveObjectTypeRelations($this->groupID);
+ foreach ($this->labelObjectTypes as $objectTypeID => $labelObjectType) {
+ $labelObjectType->save();
+ }
+
$this->saved();
// show success