<dl{if $errorField == 'groupID'} class="formError"{/if}>
<dt><label for="groupID">{lang}wcf.acp.label.group{/lang}</label></dt>
<dd>
- <select id="groupID" name="groupID">
+ <select id="groupID" name="groupID"{if $action == 'edit'} disabled{/if}>
<option value="0">{lang}wcf.global.noSelection{/lang}</option>
{foreach from=$labelGroupList item=group}
<option value="{@$group->groupID}"{if $group->groupID == $groupID} selected{/if}>{$group}{if $group->groupDescription} / {$group->groupDescription}{/if}</option>
{/foreach}
</select>
+ <small>{lang}wcf.acp.label.group.permanentSelection{/lang}</small>
{if $errorField == 'groupID'}
<small class="innerError">
{if $errorType == 'empty'}
/**
* label object
- * @var \wcf\data\label\Label
+ * @var Label
*/
- public $labelObj = null;
+ public $labelObj;
/**
* @inheritDoc
}
// update label
+
+ // groupID is immutable because altering it would cause issues with objects that are
+ // assigned to them, but the new group is not allowed at their current position
$this->objectAction = new LabelAction([$this->labelID], 'update', ['data' => array_merge($this->additionalFields, [
'label' => $this->label,
'cssClassName' => ($this->cssClassName == 'custom' ? $this->customCssClassName : $this->cssClassName),
- 'groupID' => $this->groupID,
'showOrder' => $this->showOrder
])]);
$this->objectAction->executeAction();
<item name="wcf.acp.label.group.error.notValid"><![CDATA[Die gewählte Labelgruppe ist ungültig.]]></item>
<item name="wcf.acp.label.group.forceSelection"><![CDATA[Label aus dieser Gruppe muss zwingend ausgewählt werden]]></item>
<item name="wcf.acp.label.group.list"><![CDATA[Labelgruppen]]></item>
+ <item name="wcf.acp.label.group.permanentSelection"><![CDATA[Die ausgewählte Labelgruppe kann nachträglich nicht mehr verändert werden.]]></item>
<item name="wcf.acp.label.label"><![CDATA[Label]]></item>
<item name="wcf.acp.label.list"><![CDATA[Labels]]></item>
<item name="wcf.acp.label.group.groupName.description"><![CDATA[Der Titel ist für alle Benutzer sichtbar, die Zugriff auf diese Labelgruppe haben.]]></item>
<item name="wcf.acp.label.group.error.notValid"><![CDATA[Chosen label group is invalid.]]></item>
<item name="wcf.acp.label.group.forceSelection"><![CDATA[Force selection of a label]]></item>
<item name="wcf.acp.label.group.list"><![CDATA[Label Groups]]></item>
+ <item name="wcf.acp.label.group.permanentSelection"><![CDATA[The selected label group cannot be modified and is permanent for this label.]]></item>
<item name="wcf.acp.label.label"><![CDATA[Label]]></item>
<item name="wcf.acp.label.list"><![CDATA[Labels]]></item>
<item name="wcf.acp.label.group.groupName.description"><![CDATA[The title is visible for every user who can interact with the label group.]]></item>