[glom/glom-1-20] Database Preferences: Really store the organization name in the database.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom/glom-1-20] Database Preferences: Really store the organization name in the database.
- Date: Mon, 6 Feb 2012 09:01:21 +0000 (UTC)
commit 2a5d2a00bc6500b11fb1c6f271464c559cb2caee
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 03798c8..9f93501 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 c044af9..46c9fd8 100644
--- a/glom/libglom/db_utils.cc
+++ b/glom/libglom/db_utils.cc
@@ -422,6 +422,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]