Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Fixed duplicate success message after saving a newly added tag https://github.com/givanz/Vvveb/issues/309

givanz536c7594644e
diff --git a/admin/controller/content/tag.php b/admin/controller/content/tag.php
index 208a1a9..040e721 100755
--- a/admin/controller/content/tag.php
+++ b/admin/controller/content/tag.php
@@ -46,9 +46,6 @@ class Tag extends Base {
'taxonomy_item' => ['taxonomy_item_id' => $taxonomy_item_id, 'taxonomy_id' => $taxonomy_id] + $tag,
]);
} else {
- var_dump(['taxonomy_item_content' => [$tag + $this->global],
- 'taxonomy_item' => ['taxonomy_id' => $taxonomy_id] + $tag,
- ]);
$result = $tags->addCategory(
['taxonomy_item_content' => $tag + $this->global,
'taxonomy_item' => ['taxonomy_id' => $taxonomy_id] + $tag,
@@ -57,8 +54,8 @@ class Tag extends Base {
}
if ($result && isset($result['taxonomy_item_content'])) {
- $message = __('Tag saved!');
- $this->view->success[] = $message;
+ $message = __('Tag saved!');
+ $this->view->success['get'] = $message;
if (! $taxonomy_item_id) {
$this->redirect(['module'=> 'content/tag', 'taxonomy_item_id' => $result['taxonomy_item'], 'taxonomy_id' => $taxonomy_id, 'type' => $post_type, 'success' => $message], [], false);