Skip to content

Commit

Permalink
(bug) event number places error in statistic
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed Jan 5, 2024
1 parent 9685b9c commit ab93c3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
## Next release
- translation files added for Swedish
- Fix a bug: unable to show extended prices of space
- Fix a bug: event number places error in statistic
- [TODO DEPLOY] `rails fablab:maintenance:regenerate_statistics[2023,9]`

## v6.3.8 2023 December 29

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def build(options = default_options)
coupon: r[:coupon],
groupName: r[:groupName],
}.merge(user_info_stat(r)))
stat[:stat] = (type == 'booking' ? 1 : r[:nb_hours])
stat[:stat] = (type == 'booking' ? (category == 'event' ? r[:nb_places] : 1) : r[:nb_hours])
stat["#{category}Id".to_sym] = r["#{category}_id".to_sym]

stat = add_custom_attributes(category, stat, r)
Expand Down

0 comments on commit ab93c3d

Please sign in to comment.