PM-4134: Agregar validación cuando se cambian los markers y se tienen casos unassigned
.
This commit is contained in:
@@ -1927,5 +1927,23 @@ class Task
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
public function getValidateSelfService($data)
|
||||
{
|
||||
$data = array_change_key_case($data, CASE_LOWER);
|
||||
$sTaskUID = $data['act_uid'];
|
||||
$response = new stdclass();
|
||||
$oCriteria = new Criteria();
|
||||
$oCriteria->add(AppDelegationPeer::DEL_THREAD_STATUS, "OPEN");
|
||||
$oCriteria->add(AppDelegationPeer::TAS_UID, $sTaskUID);
|
||||
$oCriteria->add(AppDelegationPeer::USR_UID, "");
|
||||
$oApplication = AppDelegationPeer::doSelectOne($oCriteria);
|
||||
if(!empty($oApplication)) {
|
||||
$response->result = false;
|
||||
$response->message = G::LoadTranslation('ID_CURRENT_ASSING_TYPE_WITH_CASES');
|
||||
}
|
||||
$response->result = true;
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user