updating unit data in citycom import

This commit is contained in:
Frank Schubert
2025-07-22 11:35:54 +02:00
parent 8f73a21ca3
commit 05f5be304a

View File

@@ -169,6 +169,26 @@ class CitycomImporter {
\mfValuecache::singleton()->set("adbwohneinheit-save-nesting-level-".$unit->id, 0);
}
if($unit->tuer != $home->door) {
$unit->tuer = $home->door;
$unit->save();
}
if($unit->block != $home->block) {
$unit->block = $home->block;
$unit->save();
}
if($unit->stock != $home->floor) {
$unit->stock = $home->floor;
$unit->save();
}
if($unit->stiege != $home->stairs) {
$unit->stiege = $home->stairs;
$unit->save();
}
}