Changeset 1185

Show
Ignore:
Timestamp:
07/01/09 02:22:55 (4 years ago)
Author:
tschaub
Message:

We have to set the layer title in two places because the record is not yet synchronized with the layer in a store.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • apps/opengeo/geoexplorer/trunk/src/script/app/GeoExplorer.js

    r1183 r1185  
    679679                    // set layer title from config 
    680680                    if (conf.title) { 
    681                         layer.name = conf.title; 
     681                        /** 
     682                         * Because the layer title data is duplicated, we have 
     683                         * to set it in both places.  After records have been 
     684                         * added to the store, the store handles this 
     685                         * synchronization. 
     686                         */ 
     687                        layer.setName(conf.title); 
     688                        record.set("title", conf.title); 
    682689                    } 
    683690