RimoImport: setting rimo_deleted to 0 if exists in rimo

This commit is contained in:
Frank Schubert
2025-05-16 21:49:58 +02:00
parent dc6b0f1a79
commit cf5290a999

View File

@@ -375,6 +375,10 @@ foreach ($clusters as $cluster_data) {
}
$unit = new \ADBWohneinheit($unit->id);
if($unit->rimo_deleted) {
$unit->rimo_deleted = 0;
$unit->save(["no_updates" => 1]);
}
if ($unit->extref != $home_rimo_id) {
$unit->extref = $home_rimo_id;