diff --git a/include/class_template.inc b/include/class_template.inc index d6acc5d287ea7422645334a88fd64625bd7fd1df..fb0deaea40e07b44986f3db6a486058dcec4fabc 100644 --- a/include/class_template.inc +++ b/include/class_template.inc @@ -176,6 +176,15 @@ class template return $this->tabObject->by_object[$tab]->attributesAccess[$attr]; } + function getAttributeTab($attr) + { + foreach ($this->tabObject->by_object as $tab => $tabObject) { + if (isset($tabObject->attributesAccess[$attr])) { + return $tab; + } + } + } + /*! \brief Serialize this template for webservice */ function serialize()