fix api return message

This commit is contained in:
alejandro-campos 2019-06-25 17:06:11 +02:00
parent 005540fef3
commit 6dea559ab9
1 changed files with 2 additions and 2 deletions

View File

@ -15087,10 +15087,10 @@ function remove_agent_from_policy($id_policy, $use_agent_name, $params)
}
$return = policies_change_delete_pending_agent($policy_agent['id']);
$data = __('Successfully added to delete pending id agent %d to id policy %d.', $id2, $id);
$data = __('Successfully added to delete pending id agent %d to id policy %d.', $id_agent, $id_policy);
if ($return === false) {
returnError('error_delete_policy_agent', 'Could not be deleted id agent %d from id policy %d', $id2, $id);
returnError('error_delete_policy_agent', 'Could not be deleted id agent %d from id policy %d', $id_agent, $id_policy);
} else {
returnData('string', ['type' => 'string', 'data' => $data]);
}