Skip to content

Commit ff6ea33

Browse files
committedMar 19, 2018
[processing] Fix broken Aggregate algorithm
Fixes #18349
1 parent 9b7ef06 commit ff6ea33

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
 

‎python/plugins/processing/algs/qgis/ui/AggregatesPanel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,6 @@ def configure(self):
179179

180180
class AggregatesWidgetWrapper(FieldsMappingWidgetWrapper):
181181

182-
def createWidget(self, parentLayerParameterName='INPUT'):
182+
def createPanel(self, parentLayerParameterName='INPUT'):
183183
self._parentLayerParameter = parentLayerParameterName
184184
return AggregatesPanel()

‎python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,11 @@ def __init__(self, *args, **kwargs):
479479
super(FieldsMappingWidgetWrapper, self).__init__(*args, **kwargs)
480480
self._layer = None
481481

482+
def createPanel(self):
483+
return FieldsMappingPanel()
484+
482485
def createWidget(self):
483-
self.panel = FieldsMappingPanel()
486+
self.panel = self.createPanel()
484487
self.panel.dialogType = self.dialogType
485488

486489
if self.dialogType == DIALOG_MODELER:

0 commit comments

Comments
 (0)
Please sign in to comment.