Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory
Commits
e1b87d69
Commit
e1b87d69
authored
8 years ago
by
Côme Chilliet
Committed by
Benoit Mortier
8 years ago
Browse files
Options
Download
Patches
Plain Diff
Avoid PHP errors when loading a dn from management class
Conflicts: include/class_management.inc
parent
e26455f4
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
fusiondirectory-1.3.1
fusiondirectory-1.3
fusiondirectory-1.2.3
fusiondirectory-1.2.2
fusiondirectory-1.2.1
fusiondirectory-1.2
fusiondirectory-1.1.1
fusiondirectory-1.1
fusiondirectory-1.0.20
fusiondirectory-1.0.19
fusiondirectory-1.0.18
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ihtml/themes/breezy/simple-filter.tpl
+5
-3
ihtml/themes/breezy/simple-filter.tpl
include/class_listing.inc
+7
-0
include/class_listing.inc
include/class_management.inc
+0
-7
include/class_management.inc
with
12 additions
and
10 deletions
+12
-10
ihtml/themes/breezy/simple-filter.tpl
+
5
−
3
View file @
e1b87d69
...
@@ -3,9 +3,11 @@
...
@@ -3,9 +3,11 @@
</div>
</div>
<div
class=
"contentboxb"
>
<div
class=
"contentboxb"
>
{
foreach
from
=
$objectFilters
item
=
"ofilter"
}
{
if
isset
(
$objectFilters
)
}
{
$
{
$ofilter.id
}}
<label
for=
"
{
$ofilter.id
}
"
>
{
$ofilter.label
}
</label><br/>
{
foreach
from
=
$objectFilters
item
=
"ofilter"
}
{/
foreach
}
{
$
{
$ofilter.id
}}
<label
for=
"
{
$ofilter.id
}
"
>
{
$ofilter.label
}
</label><br/>
{/
foreach
}
{/
if
}
<hr/>
<hr/>
{
$SCOPE
}
{
$SCOPE
}
...
...
This diff is collapsed.
Click to expand it.
include/class_listing.inc
+
7
−
0
View file @
e1b87d69
...
@@ -1218,6 +1218,8 @@ class listing
...
@@ -1218,6 +1218,8 @@ class listing
*/
*/
function
getAction
()
function
getAction
()
{
{
global
$config
;
// Do not do anything if this is not our PID, or there's even no PID available...
// Do not do anything if this is not our PID, or there's even no PID available...
if
(
!
isset
(
$_REQUEST
[
'dn'
])
&&
(
!
isset
(
$_REQUEST
[
'PID'
])
||
$_REQUEST
[
'PID'
]
!=
$this
->
pid
))
{
if
(
!
isset
(
$_REQUEST
[
'dn'
])
&&
(
!
isset
(
$_REQUEST
[
'PID'
])
||
$_REQUEST
[
'PID'
]
!=
$this
->
pid
))
{
return
;
return
;
...
@@ -1241,6 +1243,11 @@ class listing
...
@@ -1241,6 +1243,11 @@ class listing
$result
[
'targets'
][]
=
$this
->
entries
[
$target
][
'dn'
];
$result
[
'targets'
][]
=
$this
->
entries
[
$target
][
'dn'
];
}
}
}
elseif
(
isset
(
$_REQUEST
[
'dn'
])
&&
preg_match
(
'/^listing_([a-zA-Z_]+)$/'
,
$key
,
$m
))
{
}
elseif
(
isset
(
$_REQUEST
[
'dn'
])
&&
preg_match
(
'/^listing_([a-zA-Z_]+)$/'
,
$key
,
$m
))
{
/* Pre-render list to init things if a dn is gonna be opened on first load */
$this
->
setBase
(
$config
->
current
[
'BASE'
]);
$this
->
filter
->
setCurrentScope
(
'sub'
);
$this
->
update
();
$this
->
render
();
$dn
=
urldecode
(
$_REQUEST
[
'dn'
]);
$dn
=
urldecode
(
$_REQUEST
[
'dn'
]);
$result
[
'action'
]
=
$m
[
1
];
$result
[
'action'
]
=
$m
[
1
];
$result
[
'targets'
][]
=
$dn
;
$result
[
'targets'
][]
=
$dn
;
...
...
This diff is collapsed.
Click to expand it.
include/class_management.inc
+
0
−
7
View file @
e1b87d69
...
@@ -167,13 +167,6 @@ class management
...
@@ -167,13 +167,6 @@ class management
}
}
}
}
// Pre-render list to init things if a dn is gonna be opened on first load
if
(
isset
(
$_REQUEST
[
'dn'
]))
{
$this
->
headpage
->
setBase
(
$config
->
current
[
'BASE'
]);
$this
->
headpage
->
filter
->
setCurrentScope
(
'sub'
);
$this
->
renderList
();
}
// Handle actions (POSTs and GETs)
// Handle actions (POSTs and GETs)
$str
=
$this
->
handleActions
(
$this
->
detectPostActions
());
$str
=
$this
->
handleActions
(
$this
->
detectPostActions
());
if
(
$str
)
{
if
(
$str
)
{
...
...
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
Menu
Explore
Projects
Groups
Topics
Snippets