Skip to content

Commit 4ab7b9e

Browse files
committed
Fixed getting plan_model in edit_lifecycles function
1 parent 8948619 commit 4ab7b9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arho_feature_template/core/plan_manager.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ def edit_lifecycles(self):
246246
if not plan_layer:
247247
return
248248

249-
active_plan_id = QgsExpressionContextUtils.projectScope(QgsProject.instance()).variable("active_plan_id")
250-
feature = PlanLayer.get_feature_by_id(active_plan_id, no_geometries=False)
249+
feature = PlanLayer.get_feature_by_id(get_active_plan_id(), no_geometries=False)
251250
if feature is None:
252251
return
253252
plan_model = PlanLayer.model_from_feature(feature)

0 commit comments

Comments
 (0)