[glom] Database Preferences: Really store the organization name in the database.



commit 38d7b90ff76872aea624d8d350135d3e91ed0bb0
Author: Murray Cumming <murrayc murrayc com>
Date:   Sun Jan 29 21:33:27 2012 +0100

    Database Preferences: Really store the organization name in the database.
    
    * glom/libglom/db_utils.cc: set_database_preferences(): Also UPDATE
    the organization name.
    
    This fixes bug #668836 (alien)

 ChangeLog                |    9 +++++++++
 glom/libglom/db_utils.cc |    1 +
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 95b4958..d0c2336 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2012-01-29  Murray Cumming  <murrayc murrayc com>
 
+	Database Preferences: Really store the organization name in the database.
+
+	* glom/libglom/db_utils.cc: set_database_preferences(): Also UPDATE
+	the organization name.
+
+	This fixes bug #668836 (alien)
+
+2012-01-29  Murray Cumming  <murrayc murrayc com>
+
 	Field Formatting: Related Choices: Default to showing the primary key.
 
 	* glom/mode_design/layout/layout_item_dialogs/box_formatting.cc:
diff --git a/glom/libglom/db_utils.cc b/glom/libglom/db_utils.cc
index 8164dde..6f35ec5 100644
--- a/glom/libglom/db_utils.cc
+++ b/glom/libglom/db_utils.cc
@@ -421,6 +421,7 @@ void set_database_preferences(Document* document, const SystemPrefs& prefs)
   Glib::RefPtr<Gnome::Gda::SqlBuilder> builder = Gnome::Gda::SqlBuilder::create(Gnome::Gda::SQL_STATEMENT_UPDATE);
   builder->set_table(GLOM_STANDARD_TABLE_PREFS_TABLE_NAME);
   builder->add_field_value(GLOM_STANDARD_TABLE_PREFS_FIELD_NAME, prefs.m_name);
+  builder->add_field_value(GLOM_STANDARD_TABLE_PREFS_FIELD_ORG_NAME, prefs.m_org_name);
   builder->add_field_value(GLOM_STANDARD_TABLE_PREFS_FIELD_ORG_ADDRESS_STREET, prefs.m_org_address_street);
   builder->add_field_value(GLOM_STANDARD_TABLE_PREFS_FIELD_ORG_ADDRESS_STREET2, prefs.m_org_address_street2);
   builder->add_field_value(GLOM_STANDARD_TABLE_PREFS_FIELD_ORG_ADDRESS_TOWN, prefs.m_org_address_town);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]