@@ -404,6 +404,7 @@ class ProcesHelper {
$sql="select p.`ID`, p.`IF_TRUE_GOTO`, p.`IF_TRUE_GOTO_FLAG`
from `CRM_PROCES` as p
where p.`IF_TRUE_GOTO` > 0
+ and p.`A_STATUS`!='DELETED'
";
$res = $db->query($sql);
while ($r = $db->fetch($res)) {