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
b8f99f31
Commit
b8f99f31
authored
Sep 16, 2014
by
Côme Bernigaud
Committed by
Benoit Mortier
Sep 16, 2014
Browse files
Fixed template filter in simpleManagement
parent
af579a2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/simpleplugin/class_simpleManagement.inc
View file @
b8f99f31
...
...
@@ -328,6 +328,19 @@ class simpleManagement extends management
$attributes
[]
=
$i
[
'mainAttr'
];
$attributes
[]
=
$i
[
'nameAttr'
];
}
if
(
!
$this
->
skipTemplates
)
{
$tag
=
'FILTERTEMPLATE'
;
$filter
.
=
'$'
.
$tag
;
$this
->
filter
->
elements
[
$tag
]
=
array
(
'type'
=>
'checkbox'
,
'tag'
=>
$tag
,
'default'
=>
TRUE
,
'unset'
=>
array
(),
'set'
=>
'(objectClass=fdTemplate)'
);
$this
->
filter
->
elementValues
[
$tag
]
=
TRUE
;
$attributes
[]
=
'fdTemplateField'
;
}
$filter
.
=
')'
;
$attributes
=
array_values
(
array_unique
(
$attributes
));
$this
->
filter
->
query
[
0
][
'filter'
]
=
'(&'
.
$filter
.
'$NAME)'
;
...
...
@@ -365,6 +378,12 @@ class simpleManagement extends management
'label'
=>
sprintf
(
_
(
'Show %s'
),
$this
->
config
->
data
[
'OBJECTS'
][
$object
][
'name'
])
);
}
if
(
!
$this
->
skipTemplates
)
{
$filters
[]
=
array
(
'id'
=>
'FILTERTEMPLATE'
,
'label'
=>
sprintf
(
_
(
'Show %s'
),
_
(
'Template'
))
);
}
$smarty
->
assign
(
'objectFilters'
,
$filters
);
return
parent
::
renderList
();
}
...
...
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