* @see wcf\system\importer\IImporter::import()
*/
public function import($oldID, array $data, array $additionalData = array()) {
+ $data['groupID'] = ImportHandler::getInstance()->getNewID('com.woltlab.wcf.label.group', $data['groupID']);
+ if (!$data['groupID']) return 0;
+
$label = LabelEditor::create($data);
ImportHandler::getInstance()->saveNewID('com.woltlab.wcf.label', $oldID, $label->labelID);
labelID INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY,
groupID INT(10) NOT NULL,
label VARCHAR(80) NOT NULL,
- cssClassName VARCHAR(255) NOT NULL
+ cssClassName VARCHAR(255) NOT NULL DEFAULT ''
);
DROP TABLE IF EXISTS wcf1_label_group;