- Patch #30956 by Cvbge: PostgreSQL fix: taxonomy_save_vocabulary() should check for 'tags' not set.
parent
87df276acb
commit
074cafa269
|
@ -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']) {
|
||||
|
|
|
@ -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']) {
|
||||
|
|
Loading…
Reference in New Issue