Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fusiondirectory
fusiondirectory
Commits
029beca3
Commit
029beca3
authored
Oct 29, 2018
by
Côme Chilliet
Browse files
✨
feat(template) Add function to detect which template tab contains a given attribute
issue
#5903
parent
929b0a88
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/class_template.inc
View file @
029beca3
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment