From 95af0c65ebb3877280625d8e5b1106d1bf3927c7 Mon Sep 17 00:00:00 2001 From: Frank Schubert Date: Thu, 21 Mar 2024 19:36:11 +0100 Subject: [PATCH] Fixed saving workorder assigned team --- scripts/adb-rimo-import/rimo-import-test.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/adb-rimo-import/rimo-import-test.php b/scripts/adb-rimo-import/rimo-import-test.php index c8e048dab..424cd07c0 100755 --- a/scripts/adb-rimo-import/rimo-import-test.php +++ b/scripts/adb-rimo-import/rimo-import-test.php @@ -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(); }