[Mapguide-trac] [mapguide-trac] #2191: Maestro - ODBC Configuration Reset is Not Saved

MapGuide Open Source trac_mapguide at osgeo.org
Thu Nov 29 02:38:46 PST 2012


#2191: Maestro - ODBC Configuration Reset is Not Saved
----------------------------+-----------------------------------------------
   Reporter:  crispinatime  |       Owner:  jng        
       Type:  defect        |      Status:  new        
   Priority:  medium        |   Milestone:  Maestro-5.0
  Component:  Maestro       |     Version:             
   Severity:  major         |    Keywords:             
External_id:                |  
----------------------------+-----------------------------------------------

Comment(by crispinatime):

 Suggested fix.

 OdbcProviderCtrl.cs, line 358
 DoDocumentReset() function modification to add null check for the message
 and actually set the content to save!


 {{{
         private void DoDocumentReset()
         {
             _fs.SetConfigurationContent(null);
             _fs.ConfigurationDocument = null;
             _service.SyncSessionCopy();
             _doc = null;
             BuildDefaultDocument();

             if (null != _doc)
             {
                 _fs.ConfigurationDocument = "config.xml";
                 _fs.SetConfigurationContent(_doc.ToXml());
                 MessageBox.Show(Strings.ConfigurationDocumentReset);
             }
         }
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/2191#comment:1>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list