From 69d37e83cfaf63accd45486654b9812bf01ec06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Thu, 25 Oct 2018 11:52:05 +0200 Subject: [PATCH] :sparkles: feat(template) Allow access to template attributes Used in public-form issue #5903 --- include/class_template.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/class_template.inc b/include/class_template.inc index 40798110f..d6acc5d28 100644 --- a/include/class_template.inc +++ b/include/class_template.inc @@ -171,6 +171,11 @@ class template } } + function getAttribute($tab, $attr) + { + return $this->tabObject->by_object[$tab]->attributesAccess[$attr]; + } + /*! \brief Serialize this template for webservice */ function serialize() -- GitLab