1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-03-15 12:29:16 +01:00

Merge branch 'dev' for release 6.0.12

This commit is contained in:
Du Peng 2023-08-14 16:10:11 +02:00
commit 1e862d5a49
7 changed files with 18 additions and 5 deletions

View File

@ -1,5 +1,13 @@
# Changelog Fab-manager
## v6.0.12 2023 August 14
- Fix a bug: event reserved places compute error
- Fix a bug: event canceled places error
- Fix a bug: 403 error when manager edit an event
- Fix a bug: unable to show projects next page button
- [TODO DEPLOY] `rails fablab:setup:build_places_cache`
## v6.0.11 2023 July 21
- Fix a bug: incorrect date range in statistics

View File

@ -1,4 +1,5 @@
.form-select {
.rs__menu { z-index: 20; }
.rs__menu .rs__menu-list {
.rs__option {
&--is-disabled {

View File

@ -168,7 +168,7 @@
</div>
</div>
<div ng-show="isCancelled(reservation)" class="well well-disabled">
<div class="text-italic text-sm">{{ 'app.public.events_show.canceled_reservation_SEATS' | translate:{SEATS:reservation.total_booked_seats} }}</div>
<div class="text-italic text-sm">{{ 'app.public.events_show.canceled_reservation_SEATS' | translate:{SEATS:reservation.nb_reserve_places} }}</div>
</div>
</div>

View File

@ -46,7 +46,7 @@ class SettingPolicy < ApplicationPolicy
external_id machines_banner_active machines_banner_text machines_banner_cta_active machines_banner_cta_label
machines_banner_cta_url trainings_banner_active trainings_banner_text trainings_banner_cta_active trainings_banner_cta_label
trainings_banner_cta_url events_banner_active events_banner_text events_banner_cta_active events_banner_cta_label
events_banner_cta_url projects_list_member_filter_presence projects_list_date_filters_presence
events_banner_cta_url projects_list_member_filter_presence projects_list_date_filters_presence advanced_accounting
project_categories_filter_placeholder project_categories_wording]
end

View File

@ -47,6 +47,6 @@ class ProjectService
records = records.includes(:users, :project_image)
records = records.page(params[:page]) if paginate
{ total: records.count, projects: records }
{ total: records.total_count, projects: records }
end
end

View File

@ -32,7 +32,11 @@ class Slots::PlacesCacheService
reserved_places = (reservations[:reservations].count || 0) + (pending[:reservations].count || 0)
if slot.availability.available_type == 'event'
reserved_places = slot.availability.event.nb_total_places - slot.availability.event.nb_free_places
reserved_places = if slot.availability.event.nb_total_places.nil?
0
else
slot.availability.event.nb_total_places - slot.availability.event.nb_free_places
end
end
places.push({
reservable_type: reservable.class.name,

View File

@ -1,6 +1,6 @@
{
"name": "fab-manager",
"version": "6.0.11",
"version": "6.0.12",
"description": "Fab-manager is the FabLab management solution. It provides a comprehensive, web-based, open-source tool to simplify your administrative tasks and your marker's projects.",
"keywords": [
"fablab",