Use "object_data(view)" instead of "view_data" in templates
authorThierry Florac <thierry.florac@onf.fr>
Wed, 11 May 2016 12:24:59 +0200
changeset 29 e070eeac5530
parent 28 7e8bedbcabe0
child 30 dd345161e0b6
Use "object_data(view)" instead of "view_data" in templates
src/pyams_content/component/theme/zmi/templates/themes-info.pt
src/pyams_content/shared/common/zmi/templates/advanced-search.pt
--- a/src/pyams_content/component/theme/zmi/templates/themes-info.pt	Thu Apr 21 18:21:14 2016 +0200
+++ b/src/pyams_content/component/theme/zmi/templates/themes-info.pt	Wed May 11 12:24:59 2016 +0200
@@ -22,7 +22,7 @@
 							  accept view.accept;
 							  autocomplete view.autocomplete;
 							  class view.css_class;
-							  data-ams-data extension:view_data;
+							  data-ams-data extension:object_data(view);
 							  data-ams-form-handler view.get_ajax_handler() | nothing;
 							  data-ams-form-options view.get_form_options() | nothing;
 							  data-ams-form-submit-target view.form_target | nothing;
--- a/src/pyams_content/shared/common/zmi/templates/advanced-search.pt	Thu Apr 21 18:21:14 2016 +0200
+++ b/src/pyams_content/shared/common/zmi/templates/advanced-search.pt	Wed May 11 12:24:59 2016 +0200
@@ -21,7 +21,7 @@
 							  accept view.accept;
 							  autocomplete view.autocomplete;
 							  class view.css_class;
-							  data-ams-data extension:view_data;
+							  data-ams-data extension:object_data(view);
 							  data-ams-form-handler view.get_ajax_handler() | nothing;
 							  data-ams-form-options view.get_form_options() | nothing;
 							  data-ams-form-submit-target view.form_target | nothing;