Skip to content

Commit

Permalink
open-projects: removed revoked projects as well
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-staab committed Feb 2, 2025
1 parent 4ce30fe commit f9a6275
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion legacy/lib/forms/chat/ChatHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public function _createComment(string $group, int $group_id, string $timestamp,
'timestamp' => mb_substr($timestamp, 0, 20),
'creator' => mb_substr($creator, 0, 127),
'creator_alias' => mb_substr($creator_alias, 0, 255),
'text' => '$lara$'.Crypt::encryptString(mb_substr($text, 0, 45000)),
'text' => Crypt::encryptString(mb_substr($text, 0, 45000)),
'type' => $type,
]);
} catch (Exception $e) {
Expand Down
4 changes: 2 additions & 2 deletions legacy/lib/framework/render/MenuRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,11 @@ public function renderProjekte($active): void
case 'open-projects':
if (is_null($hhp_bis)) {
$where = [
['state' => ['!=', 'terminated'], 'createdat' => ['>=', $hhp_von]],
['state' => ['not regexp', '(terminated|revoked)'], 'createdat' => ['>=', $hhp_von]],
];
} else {
$where = [
['state' => ['!=', 'terminated'], 'createdat' => ['BETWEEN', [$hhp_von, $hhp_bis]]],
['state' => ['not regexp', '(terminated|revoked)'], 'createdat' => ['BETWEEN', [$hhp_von, $hhp_bis]]],
];
}
break;
Expand Down

0 comments on commit f9a6275

Please sign in to comment.