Skip to content

Commit c109969

Browse files
ioigoumenikosev
authored andcommitted
Fixed searchable list and idp buttons display order
1 parent 555bb84 commit c109969

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ This version is compatible with [SimpleSAMLphp v1.18](https://simplesamlphp.org/
2626
- Load JavaScript scripts with the new way
2727
- Fix undefined index error for `idps_in_searchable_list_index`
2828
- Load jQuery CSS script
29+
- Fix searchable list and idp buttons display order
2930

3031
### Changed
3132

themes/ssp/discopower/disco.tpl.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ class="ssp-btn ssp-btn__action text-uppercase"
200200
</div> <!-- /modal -->
201201
<?php endif;
202202

203-
$idpsInSearchableListIndex;
204-
$idpsWithLogosIndex;
203+
$idpsInSearchableListIndex = -1;
204+
$idpsWithLogosIndex = -1;
205205
foreach ($this->data['idplist'] as $tab => $sList) {
206206
if (!empty($sList)) {
207207
if ($tab == 'idps_in_searchable_list') {
@@ -254,7 +254,8 @@ class="form-control" aria-describedby="search institutions" placeholder="Search.
254254
$listItems .= (showEntry($this, $idpEntry, false, true));
255255
}
256256
}
257-
if (!empty($idpsInSearchableListIndex) && $idpsInSearchableListIndex < $idpsWithLogosIndex) {
257+
// if (!empty($idpsInSearchableListIndex) && $idpsInSearchableListIndex < $idpsWithLogosIndex) {
258+
if ($idpsInSearchableListIndex > -1 && $idpsInSearchableListIndex < $idpsWithLogosIndex) {
258259
$or = '<div class="text-center ssp-line-or-line ssp-line-or-line--top">'
259260
. '<span class="ssp-line-or-line__or">'
260261
. (

0 commit comments

Comments
 (0)