[glom] Fix a typo in the previous commit.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Fix a typo in the previous commit.
- Date: Fri, 24 Feb 2012 09:13:14 +0000 (UTC)
commit fd77f31aa941aaeece9a3f885cd0ecc85a5682c8
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Feb 24 10:13:07 2012 +0100
Fix a typo in the previous commit.
* glom/mode_data/box_data_list_related.cc: Do not use m_found_set where
we really mean found_set.
ChangeLog | 7 +++++++
glom/mode_data/box_data_list_related.cc | 3 ++-
2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7bebcab..e470774 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2012-02-24 Murray Cumming <murrayc murrayc com>
+ Fix a typo in the previous commit.
+
+ * glom/mode_data/box_data_list_related.cc: Do not use m_found_set where
+ we really mean found_set.
+
+2012-02-24 Murray Cumming <murrayc murrayc com>
+
Prevent SQL SELECT errors when the user does not have view (SELECT) rights.
* glom/libglom/privs.cc: get_current_privs(): Check for an empty table
diff --git a/glom/mode_data/box_data_list_related.cc b/glom/mode_data/box_data_list_related.cc
index f5bd183..2bd0eeb 100644
--- a/glom/mode_data/box_data_list_related.cc
+++ b/glom/mode_data/box_data_list_related.cc
@@ -129,10 +129,11 @@ bool Box_Data_List_Related::init_db_details(const Glib::ustring& parent_table, b
enable_buttons();
+ //TODO: Use m_found_set?
FoundSet found_set;
found_set.m_table_name = LayoutWidgetBase::m_table_name;
- const Privileges table_privs = Privs::get_current_privs(m_found_set.m_table_name);
+ const Privileges table_privs = Privs::get_current_privs(found_set.m_table_name);
m_AddDel.set_allow_view(table_privs.m_view);
m_AddDel.set_found_set(found_set);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]