Bug report #8727
GetProjectSettings returns field name instead of alias for display field
| Status: | Closed | ||
|---|---|---|---|
| Priority: | Normal | ||
| Assignee: | |||
| Category: | QGIS Server | ||
| Affected QGIS version: | 2.0.1 | Regression?: | No | 
| Operating System: | Easy fix?: | No | |
| Pull Request or Patch supplied: | No | Resolution: | |
| Crashes QGIS or corrupts data: | No | Copied to github as #: | 17443 | 
Description
this would not be a problem but GetFeatureInfo returns the display field, thus QWC cannot display any hover information
except from GetProjectSettings:<Layer displayField="adresse" queryable="1" visible="1">
  <Name>Adressen</Name>
  ...
</Layer>
a GetFeatureInfo response on this layer shows:<GetFeatureInfoResponse>
  <Layer name="Adressen">
    <Feature id="8052">
       <Attribute value="Vor dem Neutor 7" name="Anschrift"/>
       ...
Anschrift has been defined as alias for the field adresse so GetFeatureInfo works as it should.
Associated revisions
History
#1
    
    Updated by Alessandro Pasotti almost 12 years ago
    Hi Marco and Bernhard,
please see my PR:
https://github.com/elpaso/QGIS/commit/1f9c378c77160f64612391e4e40824b853d59ddd
https://github.com/qgis/QGIS/pull/1058
#2
    
    Updated by Alessandro Pasotti almost 12 years ago
    - Status changed from Open to Closed
 
Fixed in changeset 1f9c378c77160f64612391e4e40824b853d59ddd.