From 519dbefd2f7ec206e4af56688693bad4e7bea6e9 Mon Sep 17 00:00:00 2001 From: Nicolas Florentin Date: Wed, 8 Nov 2023 10:36:40 +0100 Subject: [PATCH] (fix) statistic_subtype.label of plan was nil --- CHANGELOG.md | 4 ++++ app/models/plan.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af4147f3b..0ed25ebf1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog Fab-manager +## next deploy + +- Fix a bug: statistic_subtype.label of plan was nil + ## v6.3.0 2023 November 3 - Fix a bug: fix all failing tasks of rake task file chain.rake diff --git a/app/models/plan.rb b/app/models/plan.rb index a2aa4df3f..f3c2ca05b 100644 --- a/app/models/plan.rb +++ b/app/models/plan.rb @@ -35,8 +35,8 @@ class Plan < ApplicationRecord after_create :create_machines_prices after_create :create_spaces_prices - after_create :create_statistic_type after_create :set_name + after_create :create_statistic_type after_create :update_gateway_product after_update :update_gateway_product, if: :saved_change_to_base_name?