From ff6ea3368637f8c906f97b57cb33679193b779d8 Mon Sep 17 00:00:00 2001 From: Nyall Dawson Date: Mon, 19 Mar 2018 12:20:11 +1000 Subject: [PATCH] [processing] Fix broken Aggregate algorithm Fixes #18349 --- python/plugins/processing/algs/qgis/ui/AggregatesPanel.py | 2 +- python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/python/plugins/processing/algs/qgis/ui/AggregatesPanel.py b/python/plugins/processing/algs/qgis/ui/AggregatesPanel.py index 1a321b592e9..1c3f21495e3 100644 --- a/python/plugins/processing/algs/qgis/ui/AggregatesPanel.py +++ b/python/plugins/processing/algs/qgis/ui/AggregatesPanel.py @@ -179,6 +179,6 @@ class AggregatesPanel(FieldsMappingPanel): class AggregatesWidgetWrapper(FieldsMappingWidgetWrapper): - def createWidget(self, parentLayerParameterName='INPUT'): + def createPanel(self, parentLayerParameterName='INPUT'): self._parentLayerParameter = parentLayerParameterName return AggregatesPanel() diff --git a/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py b/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py index 81115c9387d..23f3d465035 100644 --- a/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py +++ b/python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py @@ -479,8 +479,11 @@ class FieldsMappingWidgetWrapper(WidgetWrapper): super(FieldsMappingWidgetWrapper, self).__init__(*args, **kwargs) self._layer = None + def createPanel(self): + return FieldsMappingPanel() + def createWidget(self): - self.panel = FieldsMappingPanel() + self.panel = self.createPanel() self.panel.dialogType = self.dialogType if self.dialogType == DIALOG_MODELER: