- Patch #30956 by Cvbge: PostgreSQL fix: taxonomy_save_vocabulary() should check for 'tags' not set.

4.7.x
Dries Buytaert 2005-09-12 21:55:41 +00:00
parent 87df276acb
commit 074cafa269
2 changed files with 2 additions and 0 deletions

View File

@ -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']) {

View File

@ -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']) {