Fixed saving workorder assigned team

This commit is contained in:
Frank Schubert
2024-03-21 19:36:11 +01:00
parent 2ee8bd0b49
commit 95af0c65eb

View File

@@ -122,10 +122,10 @@ foreach($netowners as $apiOwner) {
$addressErrors = [];
if($cluster_rimo_id != "SDIRolloutRegion_411273870081_1710940292") {
/*if($cluster_rimo_id != "SDIRolloutRegion_411273870081_1710940292") {
// preding
continue;
}
}*/
/*
* get Cluster Outline Coords
@@ -449,6 +449,8 @@ foreach($netowners as $apiOwner) {
if($wo && $workorder_status != $wo->rimo_status) {
//echo "Updating Workorder $rimo_workorder_id ($workorder_home_id)\n";
$wo->rimo_status = $workorder_status;
if($team_id) $wo->rimo_team_id = $team_id;
if($team_name) $wo->rimo_team_name = $team_name;
$wo->save();
}