diff --git a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature index 04d1c9643..ed4db7af8 100644 --- a/features/backend/application_cases/case_actions/main_tests_cases_actions.feature +++ b/features/backend/application_cases/case_actions/main_tests_cases_actions.feature @@ -49,7 +49,7 @@ Scenario: Returns a list of the cases for the logged in user (Paused) And the response has 12 records -Scenario: Returns information about a given case of the list Inbox +Scenario: Returns information about a given case of the list Inbox of process "Derivation rules - Parallel" Given I request "cases/220090038533b0c40688174019225585" Then the response status code should be 200 And the response charset is "UTF-8" @@ -59,7 +59,7 @@ Scenario: Returns information about a given case of the list Inbox And the "app_name" property equals "#137" And the "app_status" property equals "TO_DO" And the "app_init_usr_uid" property equals "00000000000000000000000000000001" - And the "app_init_usr_username" property equals "Administrator " + And the "app_init_usr_username" property equals "Administrator" And the "pro_uid" property equals "35894775350ec7daa099378048029617" And the "pro_name" property equals "Derivation rules - Parallel" And the "app_create_date" property equals "2014-04-01 14:58:08" diff --git a/workflow/engine/src/ProcessMaker/BusinessModel/Cases.php b/workflow/engine/src/ProcessMaker/BusinessModel/Cases.php index ca3efc8fd..f1a8ed6b3 100644 --- a/workflow/engine/src/ProcessMaker/BusinessModel/Cases.php +++ b/workflow/engine/src/ProcessMaker/BusinessModel/Cases.php @@ -608,7 +608,7 @@ class Cases } \G::LoadClass('wsBase'); $ws = new \wsBase(); - $fields = $ws->reassignCase($userUid, $applicationUid, $delIndex, $userUidSource, $userUidTarget); + $fields = $ws->reassignCase($userUid, $applicationUid, $delIndex, $userUidTarget, $userUidSource); $array = json_decode(json_encode($fields), true); if ($array ["status_code"] != 0) { throw (new \Exception($array ["message"])); diff --git a/workflow/engine/src/Tests/BusinessModel/CasesTest7_12.php b/workflow/engine/src/Tests/BusinessModel/CasesTest7_12.php index 81d5f2a48..33d934d56 100644 --- a/workflow/engine/src/Tests/BusinessModel/CasesTest7_12.php +++ b/workflow/engine/src/Tests/BusinessModel/CasesTest7_12.php @@ -139,7 +139,7 @@ class CasesTest extends \PHPUnit_Framework_TestCase */ public function testUpdateReassignCase(array $aResponse) { - $response = $this->oCases->updateReassignCase($aResponse['app_uid'], self::$usrUid, null, self::$usrUid, self::$usrUid2); + $response = $this->oCases->updateReassignCase($aResponse['app_uid'], self::$usrUid, null, self::$usrUid2, self::$usrUid); $this->assertTrue(empty($response)); }