Fix adobe issue

This commit is contained in:
gamonoid
2017-09-24 20:13:11 +02:00
parent 7424471a60
commit 5b1b087f01
4 changed files with 73806 additions and 9 deletions

View File

@@ -111,9 +111,7 @@ class ApprovalStatus
public function updateApprovalStatus($type, $id, $currentEmployee, $status)
{
LogManager::getInstance()->error('updateApprovalStatus 1');
if (!$this->approvalChainExists($type, $id)) {
LogManager::getInstance()->error('updateApprovalStatus 2');
return new IceResponse(IceResponse::SUCCESS, array(null, null));
}
@@ -136,8 +134,6 @@ class ApprovalStatus
}
}
LogManager::getInstance()->error('level '.$level);
$currentAL = null;
if ($level > 0) {
$currentAL = new EmployeeApproval();
@@ -149,7 +145,6 @@ class ApprovalStatus
$nextAL = new EmployeeApproval();
$nextAL->Load("type = ? and element = ? and level = ?", array($type, $id, intval($level)+1));
LogManager::getInstance()->error('next AL '.print_r($nextAL, true));
if (empty($nextAL->id)) {
$nextAL = null;
}