From 890f52da5414dc731d694069ea32178bbaa2a85e Mon Sep 17 00:00:00 2001 From: touffies Date: Wed, 11 Dec 2013 20:56:04 +0100 Subject: [PATCH] Add hidden field category_id --- templates/backOffice/default/category-edit.html | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/templates/backOffice/default/category-edit.html b/templates/backOffice/default/category-edit.html index 103aef851..81d33e79c 100755 --- a/templates/backOffice/default/category-edit.html +++ b/templates/backOffice/default/category-edit.html @@ -10,7 +10,7 @@
- {include file="includes/catalog-breadcrumb.html" editing_category="true"} /{$category_id}/{$edit_language_id}/ + {include file="includes/catalog-breadcrumb.html" editing_category="true"}
{loop name="category_edit" type="category" visible="*" id="{$category_id}" backend_context="1" lang="$edit_language_id"} @@ -55,13 +55,17 @@
{form name="thelia.admin.category.modification"} -
+ {include file="includes/inner-form-toolbar.html" close_url=$close_url } + {* Be sure to get the category ID, even if the form could not be validated *} + + + {form_hidden_fields form=$form} {form_field form=$form field='success_url'} @@ -129,6 +133,7 @@ {include file="includes/seo-tab.html" form = $form formAction = "{url path='/admin/categories/seo/save'}" + current_id=$ID closeUrl = $close_url } {/form} @@ -148,7 +153,7 @@

{intl l='Related content'}

{intl l='You can attach here some content to this category'}

- + {ifloop rel="folders"} @@ -212,7 +217,7 @@ - {loop name="assigned_contents" type="associated_content" category="$category_id" backend_context="1" lang="$edit_language_id"} + {loop name="assigned_contents" type="associated_content" category="$ID" backend_context="1" lang="$edit_language_id"} {$ID} @@ -248,11 +253,11 @@
- {include file='includes/image-upload-form.html' imageType='category' parentId=$category_id} + {include file='includes/image-upload-form.html' imageType='category' parentId=$ID}
- {include file='includes/document-upload-form.html' documentType='category' parentId=$category_id} + {include file='includes/document-upload-form.html' documentType='category' parentId=$ID}