From 285ee5a28827371f30f9945ff4e0c10c806f0ed6 Mon Sep 17 00:00:00 2001 From: eddieajau Date: Thu, 8 Dec 2011 19:34:43 +1000 Subject: [PATCH 1/2] Fix SQL when trying to save a module due to query build error. --- administrator/components/com_modules/models/module.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/administrator/components/com_modules/models/module.php b/administrator/components/com_modules/models/module.php index fe73a1d971575..28f6bb350be84 100644 --- a/administrator/components/com_modules/models/module.php +++ b/administrator/components/com_modules/models/module.php @@ -631,11 +631,10 @@ public function save($data) // ); $query->clear(); - $query->insert('#__modules_menu'); + $query->insert('#__modules_menu'); $query->columns('moduleid'); $query->columns('menuid'); - $query->values((int)$table->id); - $query->values(0); + $query->values((int) $table->id . ', 0'); $db->setQuery((string)$query); if (!$db->query()) { $this->setError($db->getErrorMsg()); From 90f532213730ae23f2584742e9391e309d34fe01 Mon Sep 17 00:00:00 2001 From: eddieajau Date: Thu, 8 Dec 2011 19:36:26 +1000 Subject: [PATCH 2/2] Add extra ignore filters for common files. --- .gitignore | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index 5236e1e4621a7..53a01120f1537 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,8 @@ *~ +/.settings +/.project +/.buildpath +/configuration.php +/logs/* +/cache/*