Package: qgis / 2.4.0-1

0001-processing-fix-join-to-layer-with-join-fix-10244.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From df5c1f0747ae66cd134896974afee8d8c6a8d495 Mon Sep 17 00:00:00 2001
From: Minoru Akagi <akaginch@gmail.com>
Date: Sat, 5 Jul 2014 13:38:25 +0900
Subject: [processing] fix join to layer with join (fix #10244)
Origin: https://github.com/qgis/QGIS/commit/df5c1f0747ae66cd134896974afee8d8c6a8d495
Bug: http://hub.qgis.org/issues/10244


--- a/python/plugins/processing/tools/vector.py
+++ b/python/plugins/processing/tools/vector.py
@@ -260,10 +260,10 @@ def combineVectorFields(layerA, layerB):
     """Create single field map from two input field maps.
     """
     fields = []
-    fieldsA = layerA.dataProvider().fields()
+    fieldsA = layerA.pendingFields()
     fields.extend(fieldsA)
     namesA = [unicode(f.name()).lower() for f in fieldsA]
-    fieldsB = layerB.dataProvider().fields()
+    fieldsB = layerB.pendingFields()
     for field in fieldsB:
         name = unicode(field.name()).lower()
         if name in namesA: