Ticket #2386 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Join attributes issues

Reported by: dr Owned by: cfarmer
Priority: major: does not work as expected Milestone: Version 1.5.0
Component: Python plugins and bindings Version: Trunk
Keywords: Cc: dr, gislab, alexbruy
Platform Version: Platform: All
Must Fix for Release: No Awaiting user input: no

Description

1. Open two layers (see attachment): hydro-a.shp and ecoregions.shp;
2. Vector - Data management tool - Join attributes;
3. Set 'hydro-a' as target vector layer and try press drop-down list Target join field. It contains 2 elements;
4. Change target vector layer to ecoregions;
5. Try press drop-down list Target join field. It contains 5 elements, but ecoregions layer consists of 3 fields;

Attachments

shape.7z Download (159.7 KB) - added by dr 3 years ago.
Screenshot.png Download (30.1 KB) - added by lutra 3 years ago.
join_attr.patch.bz2 Download (328 bytes) - added by alexbruy 3 years ago.

Change History

Changed 3 years ago by dr

Changed 3 years ago by lutra

Confirmed. Every time you change layer in the "target vector layer" dropdown it replicates/add the field to the "target join field" dropdown. See attached image.

Changed 3 years ago by lutra

  • owner changed from borysiasty to cfarmer

Changed 3 years ago by lutra

Changed 3 years ago by lutra

  • priority changed from critical: causes crash or data corruption to major: does not work as expected

Changed 3 years ago by cfarmer

  • status changed from new to closed
  • resolution set to fixed

Should be fixed in svn 12892. Please test and report back if the problem remains.

Carson

Changed 3 years ago by alexbruy

  • status changed from closed to reopened
  • resolution fixed deleted

Now another error (thanks to dr). Open any vector layer and run Vector - Data management tool - Join attributes. Error message appears

Traceback (most recent call last): File "C:\OSGeo4W\apps\qgis-dev\python\plugins\fTools\tools\doJoinAttributes.py", line 77, in jupdate self.jonField.clear() AttributeError?: 'Dialog' object has no attribute 'jonField'

Версия Python: 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

I've look in code, there is a typo in line 77. Patch attached

Changed 3 years ago by alexbruy

Changed 3 years ago by cfarmer

  • status changed from reopened to closed
  • resolution set to fixed

fixed (again) in #12952

Note: See TracTickets for help on using tickets.