PM-2923: I used refreshTotal only when the userUid isn't empty (Self service)

This commit is contained in:
Paula V. Quispe
2015-06-18 11:14:53 -04:00
parent 9e0e442d97
commit 9a184c4c60
3 changed files with 8 additions and 2 deletions

View File

@@ -306,7 +306,9 @@ class ListInbox extends BaseListInbox
}
}
} else {
$users->refreshTotal($data['USR_UID'], 'add', 'inbox');
if($data['USR_UID'] !=''){
$users->refreshTotal($data['USR_UID'], 'add', 'inbox');
}
if ($dataPreviusApplication['APP_STATUS'] == 'DRAFT') {
$users->refreshTotal($dataPreviusApplication['CURRENT_USER_UID'], 'remove', 'draft');
} else {