burning.horse schrieb:
Hi all,
At the moment i am extending the bulkupdate functionality to do a bulk
close. In doing so i detected a possible failure in the Method
setCategory in class.issue.php.
function setCategory($issue_id, $prc_id)
{
$issue_id = Misc::escapeInteger($issue_id);
$prc_id = Misc::escapeInteger($prc_id);
if ($prc_id != Issue::getPriority($issue_id)) {
$sql = "UPDATE
" . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX .
"issue
SET
iss_prc_id = $prc_id
WHERE
iss_id = $issue_id";
$res = $GLOBALS["db_api"]->dbh->query($sql);
if (PEAR::isError($res)) {
Error_Handler::logError(array($res->getMessage(),
$res->getDebugInfo()), __FILE__, __LINE__);
return -1;
} else {
return 1;
}
}
}
Why isn't it possible to update the category if the category_id is the
same as the priority_id ?
greetings,
Robin
the failure is Issue::getCategory instead of Issue:: getPriority
greetings,
Robin