Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cedric-anne committed May 6, 2024
1 parent 9e4a635 commit 2be70ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ReservationItem.php
Expand Up @@ -608,10 +608,10 @@ public static function showListSimple()
);
}
}
$item_link = sprintf(__('%1$s - %2$s'), $typename, $row["name"]);
$item_link = htmlspecialchars(sprintf(__('%1$s - %2$s'), $typename, $row["name"]));
if ($itemtype::canView()) {
$item_link = "<a href='" . htmlspecialchars($itemtype::getFormURLWithId($row['items_id'])) . "&forcetab=Reservation$1'>" .
htmlspecialchars($item_link) .
$item_link .
"</a>";
}
$entry['item'] = $item_link;
Expand Down
1 change: 0 additions & 1 deletion templates/pages/tools/find_available_reservation.html.twig
Expand Up @@ -81,7 +81,6 @@
$(() => {
$('select[name="reserve[_duration]"]').on('change', (e) => {
const value = $(e.target).val();
console.log(value);
if (parseInt(value) === 0) {
$('#date_end').load('{{ path('ajax/planningend.php') }}', {
Expand Down

0 comments on commit 2be70ba

Please sign in to comment.