mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 00:28:47 +02:00
N°649 Stop displaying Ticket objects in a CI's ongoing tickets tab when the impact code is 'not impacted'.
SVN:trunk[4859]
This commit is contained in:
@@ -1599,7 +1599,7 @@
|
||||
if ($sStateAttCode != '')
|
||||
{
|
||||
// Todo: base the search condition on operational_status = 'ongoing' for a more flexible behavior
|
||||
$oSearch = DBSearch::FromOQL("SELECT $sSubClass AS t JOIN $sLnkClass AS lnk ON lnk.$sExtKeyToRemote = t.id WHERE lnk.$sExtKeyToMe = :myself AND t.$sStateAttCode NOT IN ('rejected', 'resolved', 'closed')", array('myself' => $this->GetKey()));
|
||||
$oSearch = DBSearch::FromOQL("SELECT $sSubClass AS t JOIN $sLnkClass AS lnk ON lnk.$sExtKeyToRemote = t.id WHERE lnk.$sExtKeyToMe = :myself AND t.$sStateAttCode NOT IN ('rejected', 'resolved', 'closed') AND lnk.impact_code != 'not_impacted'", array('myself' => $this->GetKey()));
|
||||
$aSearches[$sSubClass] = $oSearch;
|
||||
|
||||
$oSet = new DBObjectSet($oSearch);
|
||||
|
||||
Reference in New Issue
Block a user