From a9d1c3b70051e3bb24410a5a767427235ccdfd56 Mon Sep 17 00:00:00 2001 From: rldhont Date: Wed, 13 Nov 2024 10:03:01 +0100 Subject: [PATCH] [Bugfix] Feature toolbar: child layer is pivot Funded by Le Grand Narbonne --- assets/src/components/FeatureToolbar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/src/components/FeatureToolbar.js b/assets/src/components/FeatureToolbar.js index 9515702a3e..6b5ec93288 100644 --- a/assets/src/components/FeatureToolbar.js +++ b/assets/src/components/FeatureToolbar.js @@ -367,7 +367,7 @@ export default class FeatureToolbar extends HTMLElement { // Check if the child layer has insert capabilities let [childFeatureType, childLayerConfig] = lizMap.getLayerConfigById(relation.referencingLayer); - let isPivot = !!lizMap.config?.relations?.pivot?.[relation.referencingLayer] + let isPivot = lizMap.config?.attributeLayers?.[childFeatureType]?.pivot === "True" && !!lizMap.config?.relations?.pivot?.[relation.referencingLayer] if (isPivot || lizMap.config?.editionLayers?.[childFeatureType]?.capabilities?.createFeature !== "True") { return; }