Added script to create QGIS data table

This commit is contained in:
Frank Schubert
2022-08-09 17:10:50 +02:00
parent 6eab665c45
commit 882896dc5d
4 changed files with 179 additions and 2 deletions

View File

@@ -137,7 +137,7 @@ class Building extends mfBaseModel {
$item = mfValuecache::singleton()->get("wfBuilding-name-".$itemname);
if(!$item) {
$item = WorkflowitemModel::getFirst(['name' => $itemname]);
if(!$item->id) {
if(!$item || !$item->id) {
return null;
}
mfValuecache::singleton()->set("wfBuilding-name-".$itemname, $item);