mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-16 14:41:39 +00:00
fix listing users in form
This commit is contained in:
parent
ab546099f1
commit
59130d1756
|
@ -235,7 +235,7 @@ function typeahead() { /* {{{ */
|
||||||
);
|
);
|
||||||
$options = array();
|
$options = array();
|
||||||
foreach ($allUsers as $currUser) {
|
foreach ($allUsers as $currUser) {
|
||||||
if($user->isAdmin() || (!$currUser->isGuest() && (!$currObj->isHidden() || $currObj->getID() == $user->getID())))
|
if($user->isAdmin() || (!$currUser->isGuest() && (!$currUser->isHidden() || $currUser->getID() == $user->getID())))
|
||||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), in_array($currUser->getID(), $owner), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
|
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), in_array($currUser->getID(), $owner), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
|
||||||
}
|
}
|
||||||
$this->formField(
|
$this->formField(
|
||||||
|
@ -432,7 +432,7 @@ function typeahead() { /* {{{ */
|
||||||
if(!isset($facets['owner'])) {
|
if(!isset($facets['owner'])) {
|
||||||
$options = array();
|
$options = array();
|
||||||
foreach ($allUsers as $currUser) {
|
foreach ($allUsers as $currUser) {
|
||||||
if($user->isAdmin() || (!$currUser->isGuest() && (!$currObj->isHidden() || $currObj->getID() == $user->getID())))
|
if($user->isAdmin() || (!$currUser->isGuest() && (!$currUser->isHidden() || $currUser->getID() == $user->getID())))
|
||||||
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), in_array($currUser->getID(), $owner), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
|
$options[] = array($currUser->getID(), htmlspecialchars($currUser->getLogin()), in_array($currUser->getID(), $owner), array(array('data-subtitle', htmlspecialchars($currUser->getFullName()))));
|
||||||
}
|
}
|
||||||
$this->formField(
|
$this->formField(
|
||||||
|
@ -525,7 +525,6 @@ foreach($facets as $facetname=>$values) {
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
echo "</div>";
|
|
||||||
$this->columnEnd();
|
$this->columnEnd();
|
||||||
$this->columnStart(8);
|
$this->columnStart(8);
|
||||||
$this->contentHeading(getMLText('search_results'));
|
$this->contentHeading(getMLText('search_results'));
|
||||||
|
|
Loading…
Reference in New Issue
Block a user