Commit ab488b11 authored by amma35's avatar amma35 Committed by Johan Cwiklinski

fix #1776 planning in central

parent b8a5a9f0
......@@ -983,6 +983,10 @@ abstract class CommonITILTask extends CommonDBTM {
$addrestrict = 'AND NOT `'.$parentitem->getTable().'`.`is_deleted`';
}
$addrestrict .= "AND NOT `" . $parentitem->getTable() . "`.`status` IN
('" . implode("', '", array_merge($parentitem->getSolvedStatusArray(),
$parentitem->getClosedStatusArray())) . "')";
$query = "SELECT `".$item->getTable()."`.*
FROM `".$item->getTable()."`
INNER JOIN `".$parentitem->getTable()."`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment