* label group to which the displayed labels belong
* @var LabelGroup
*/
- public $labelGroup = null;
+ public $labelGroup;
/**
* list with available label groups
* @var LabelGroupList
*/
- public $labelGroupList = null;
+ public $labelGroupList;
/**
* @inheritDoc
$this->objectList->sqlJoins = "LEFT JOIN wcf".WCF_N."_label_group label_group ON (label_group.groupID = label.groupID)";
if ($this->labelGroup) {
$this->objectList->getConditionBuilder()->add('label.groupID = ?', [$this->labelGroup->groupID]);
+
+ // Ramp up the limit to display all labels at once for easier
+ // drag & drop sorting. This isn't exactly infinite, but if
+ // you have a label group with more than 1k labels, being able
+ // to sort them is the least of your problems.
+ $this->itemsPerPage = 1000;
}
if ($this->cssClassName) {
$this->objectList->getConditionBuilder()->add('label.cssClassName LIKE ?', ['%'.addcslashes($this->cssClassName, '_%').'%']);