protected function handleDelete(array $items) {
$sql = "DELETE FROM wcf".WCF_N."_".$this->tableName."
WHERE actionName = ?
+ AND actionClassName = ?
AND packageID = ?";
$statement = WCF::getDB()->prepareStatement($sql);
foreach ($items as $item) {
$statement->execute(array(
$item['attributes']['name'],
+ $item['elements']['actionclassname'],
$this->installation->getPackageID()
));
}
$sql = "SELECT *
FROM wcf".WCF_N."_".$this->tableName."
WHERE actionName = ?
+ AND actionClassName = ?
AND packageID = ?";
$parameters = array(
$data['actionName'],
+ $data['actionClassName'],
$this->installation->getPackageID()
);
actionName VARCHAR(50) NOT NULL DEFAULT '',
actionClassName VARCHAR(200) NOT NULL DEFAULT '',
showOrder INT(10) NOT NULL DEFAULT 0,
- UNIQUE KEY actionName (packageID, actionName)
+ UNIQUE KEY actionName (packageID, actionName, actionClassName)
);
DROP TABLE IF EXISTS wcf1_clipboard_item;