summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-09-12 21:55:41 +0000
committerDries Buytaert <dries@buytaert.net>2005-09-12 21:55:41 +0000
commit074cafa269503b9de27adbe5e2c75e5be29a5f20 (patch)
treeaeeaeb574d17cee7b8f21c3c79dfc490d0aa0ca7 /modules
parent87df276acb5c83877368431bb188e939de0681be (diff)
downloadbrdo-074cafa269503b9de27adbe5e2c75e5be29a5f20.tar.gz
brdo-074cafa269503b9de27adbe5e2c75e5be29a5f20.tar.bz2
- Patch #30956 by Cvbge: PostgreSQL fix: taxonomy_save_vocabulary() should check for 'tags' not set.
Diffstat (limited to 'modules')
-rw-r--r--modules/taxonomy.module1
-rw-r--r--modules/taxonomy/taxonomy.module1
2 files changed, 2 insertions, 0 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index d249c41c0..c773ac628 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -134,6 +134,7 @@ function taxonomy_form_vocabulary($edit = array()) {
function taxonomy_save_vocabulary(&$edit) {
$edit['nodes'] = ($edit['nodes']) ? $edit['nodes'] : array();
$edit['weight'] = ($edit['weight']) ? $edit['weight'] : 0;
+ $edit['tags'] = ($edit['tags']) ? $edit['tags'] : 0;
$data = array('name' => $edit['name'], 'description' => $edit['description'], 'help' => $edit['help'], 'multiple' => $edit['multiple'], 'required' => $edit['required'], 'hierarchy' => $edit['hierarchy'], 'relations' => $edit['relations'], 'tags' => $edit['tags'], 'weight' => $edit['weight'], 'module' => isset($edit['module']) ? $edit['module'] : 'taxonomy');
if ($edit['vid'] && $edit['name']) {
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index d249c41c0..c773ac628 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -134,6 +134,7 @@ function taxonomy_form_vocabulary($edit = array()) {
function taxonomy_save_vocabulary(&$edit) {
$edit['nodes'] = ($edit['nodes']) ? $edit['nodes'] : array();
$edit['weight'] = ($edit['weight']) ? $edit['weight'] : 0;
+ $edit['tags'] = ($edit['tags']) ? $edit['tags'] : 0;
$data = array('name' => $edit['name'], 'description' => $edit['description'], 'help' => $edit['help'], 'multiple' => $edit['multiple'], 'required' => $edit['required'], 'hierarchy' => $edit['hierarchy'], 'relations' => $edit['relations'], 'tags' => $edit['tags'], 'weight' => $edit['weight'], 'module' => isset($edit['module']) ? $edit['module'] : 'taxonomy');
if ($edit['vid'] && $edit['name']) {