mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Merge branch 'ent-10965-corregir-error-en-la-creacion-de-tags-meta-y-nodo' into 'develop'
Ent 10965 corregir error en la creacion de tags meta y nodo See merge request artica/pandorafms!5734
This commit is contained in:
commit
bae20a460e
@ -121,12 +121,13 @@ if ($update_tag && $id_tag != 0) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create tag: creates a new tag
|
// Create tag: creates a new tag.
|
||||||
if ($create_tag) {
|
if ($create_tag) {
|
||||||
$return_create = true;
|
$return_create = true;
|
||||||
|
|
||||||
// Erase comma characters on tag name
|
// Erase comma characters and spaces on tag name.
|
||||||
$name_tag = str_replace(',', '', $name_tag);
|
$name_tag = str_replace(',', '', $name_tag);
|
||||||
|
$name_tag = str_replace(' ', '', $name_tag);
|
||||||
|
|
||||||
$data = [];
|
$data = [];
|
||||||
$data['name'] = $name_tag;
|
$data['name'] = $name_tag;
|
||||||
@ -155,11 +156,14 @@ if ($create_tag) {
|
|||||||
AUDIT_LOG_TAG_MANAGEMENT,
|
AUDIT_LOG_TAG_MANAGEMENT,
|
||||||
$auditMessage
|
$auditMessage
|
||||||
);
|
);
|
||||||
ui_print_result_message(
|
|
||||||
$action === 'update',
|
if ($name_tag !== '') {
|
||||||
__('Successfully created tag'),
|
ui_print_result_message(
|
||||||
__('Error creating tag')
|
$action === 'update',
|
||||||
);
|
__('Successfully created tag'),
|
||||||
|
__('Error creating tag')
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Form fields are filled here
|
// Form fields are filled here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user