Skip to content

Commit

Permalink
Merge branch 'master' into testing
Browse files Browse the repository at this point in the history
  • Loading branch information
bkralik committed Jan 13, 2025
2 parents 15378d4 + 4390614 commit ca197ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/model/UzivatelListGrid.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getListOfOtherUsersGrid($presenter, $name, $loggedUser, $id, $mo
return $tr;
}
// TODO: spolek / druzstvo
if ($item->TypClenstvi_id == 2) {
if ($item->spolek && $item->TypClenstvi_id == 2) {
$tr->class[] = 'primarni';
}
return $tr;
Expand All @@ -103,12 +103,12 @@ public function getListOfOtherUsersGrid($presenter, $name, $loggedUser, $id, $mo
$tr->class[] = 'cestne';
return $tr;
}
// TODO: spolek / druzstvo
if ($item->TypClenstvi_id == 2) {
if ($item->spolek && $item->TypClenstvi_id == 2) {
$tr->class[] = 'primarni';
}
// TODO: spolek / druzstvo
if ($item->TypClenstvi_id == 1) {
if ($item->spolek && $item->TypClenstvi_id == 1 && (!$item->druzstvo)
|| $item->druzstvo && $item->smazano && (!$item->spolek)
|| $item->spolek && $item->druzstvo && $item->TypClenstvi_id == 1 && $item->smazano) {
$tr->class[] = 'zrusene';
}
if ($item->TypClenstvi_id === 0) {
Expand Down

0 comments on commit ca197ea

Please sign in to comment.