2 messages in com.mysql.lists.eventum-usersRe: failure in method issue::setCateg...
FromSent OnAttachments
burning.horse08 Jan 2008 00:59 
burning.horse08 Jan 2008 03:26 
Subject:Re: failure in method issue::setCategory ??
From:burning.horse (burn@gmx.de)
Date:01/08/2008 03:26:33 AM
List:com.mysql.lists.eventum-users

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