1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-01-29 18:52:22 +01:00

[bug] updating a setting does not chain new values

This commit is contained in:
Sylvain 2019-04-23 13:04:50 +02:00
parent 6f2483a51f
commit 5d32756928
2 changed files with 4 additions and 0 deletions

View File

@ -1,8 +1,10 @@
# Changelog Fab Manager
- Fix a bug: when generating an Avoir at a previous date, the resulting checksum may be invalid
- Fix a bug: updating a setting does not chain new values
- [TODO DEPLOY] `rake fablab:setup:chain_invoices_items_records`
- [TODO DEPLOY] `rake fablab:setup:chain_invoices_records`
- [TODO DEPLOY] `rake fablab:setup:chain_history_values_records`
## v3.1.1 2019 April 8

View File

@ -7,6 +7,8 @@ class HistoryValue < ActiveRecord::Base
belongs_to :setting
belongs_to :user
after_create :chain_record
def chain_record
self.footprint = compute_footprint
save!