|
|
@@ -442,7 +442,7 @@ class IssueController extends Controller
|
|
442
|
442
|
if($key == $redmineUser->id){
|
|
443
|
443
|
$activity_id = $request->activity_id;
|
|
444
|
444
|
}else{
|
|
445
|
|
- $activity_id = Config::getValue(Config::ATTIVITA_TECNICO_AGGIUNTIVO);
|
|
|
445
|
+ $activity_id = Config::getValue(Config::ATTIVITA_TECNICO_AGGIUNTIVO, $azienda);
|
|
446
|
446
|
}
|
|
447
|
447
|
|
|
448
|
448
|
$response = Http::post("https://".$redmineUser->api_key."@".$azienda->redmine_url.'/time_entries.xml', [
|
|
|
@@ -474,7 +474,7 @@ class IssueController extends Controller
|
|
474
|
474
|
'spent_on' => $dataIntervento->toDateString(),
|
|
475
|
475
|
'hours' => $request->ore_viaggio,
|
|
476
|
476
|
'comments' => 'Viaggio',
|
|
477
|
|
- 'activity_id' => Config::getValue(Config::ATTIVITA_VIAGGIO),
|
|
|
477
|
+ 'activity_id' => Config::getValue(Config::ATTIVITA_VIAGGIO, $azienda),
|
|
478
|
478
|
'user_id' => $key,
|
|
479
|
479
|
'custom_fields' => [
|
|
480
|
480
|
[
|