Skip to content
GitLab
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
3ee4b668
Unverified
Commit
3ee4b668
authored
4 years ago
by
Côme Chilliet
Browse files
Options
Download
Patches
Plain Diff
fix(errors) Fix error breadcrumbs when source is a tab
Remove trailing ">" issue
#6051
parent
3bb897a4
dev
6342-update-the-locales-for-1-5
6344-template-issue-when-creating-a-template-with-empty-password-error-message-should-not-be-seen
6365-core-locking-mechanism-is-not-changing-the-mail-ressource-it-does-lock-the-mail-account
6365-core-when-lock-mechanism-is-trigger-the-user-should-not-be-editable-if-not-unlock
6378-orcid-test-method-is-wrong-and-break-orcid-saving
core-php8
master
fusiondirectory-1.5
fusiondirectory-1.4
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/errors/class_SimplePluginError.inc
+10
-4
include/errors/class_SimplePluginError.inc
with
10 additions
and
4 deletions
+10
-4
include/errors/class_SimplePluginError.inc
+
10
−
4
View file @
3ee4b668
...
...
@@ -104,24 +104,30 @@ class SimplePluginError extends FusionDirectoryError
{
$html
=
''
;
$breadcrumbs
=
[];
if
(
isset
(
$this
->
object
))
{
$
html
.
=
htmlescape
(
$this
->
object
->
getBaseObject
()
->
dn
.
' > '
);
$
breadcrumbs
[]
=
htmlescape
(
$this
->
object
->
getBaseObject
()
->
dn
);
}
if
(
isset
(
$this
->
tab
)
&&
isset
(
$this
->
tab
->
parent
->
by_name
[
get_class
(
$this
->
tab
)]))
{
$
html
.
=
htmlescape
(
$this
->
tab
->
parent
->
by_name
[
get_class
(
$this
->
tab
)]
.
' > '
);
$
breadcrumbs
[]
=
htmlescape
(
$this
->
tab
->
parent
->
by_name
[
get_class
(
$this
->
tab
)]);
}
if
(
isset
(
$this
->
attribute
))
{
$label
=
$this
->
attribute
->
getLabel
();
if
(
empty
(
$label
))
{
$
html
.
=
'<i>'
.
htmlescape
(
$this
->
attribute
->
getLdapName
())
.
'</i>'
;
$
breadcrumbs
[]
=
'<i>'
.
htmlescape
(
$this
->
attribute
->
getLdapName
())
.
'</i>'
;
}
else
{
$
html
.
=
htmlescape
(
$label
);
$
breadcrumbs
[]
=
htmlescape
(
$label
);
}
$example
=
$this
->
attribute
->
getExample
();
}
if
(
!
empty
(
$breadcrumbs
))
{
$html
.
=
implode
(
htmlescape
(
' > '
),
$breadcrumbs
);
}
$html
.
=
'<br/><br/>'
;
$html
.
=
$this
->
htmlMessage
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment