Skip to content

Commit ae1c284

Browse files
authored
fix: force notification on feature type collection change (#293)
Signed-off-by: romanetar <roman_ag@hotmail.com>
1 parent e4b12e7 commit ae1c284

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/Models/Foundation/Summit/Summit.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4026,6 +4026,7 @@ public function addFeatureType(SummitBadgeFeatureType $feature_type): void
40264026
if ($this->badge_features_types->contains($feature_type)) return;
40274027
$this->badge_features_types->add($feature_type);
40284028
$feature_type->setSummit($this);
4029+
$this->updated(null);
40294030
}
40304031

40314032
/**
@@ -4036,6 +4037,7 @@ public function removeFeatureType(SummitBadgeFeatureType $feature_type): void
40364037
if (!$this->badge_features_types->contains($feature_type)) return;
40374038
$this->badge_features_types->removeElement($feature_type);
40384039
$feature_type->clearSummit();
4040+
$this->updated(null);
40394041
}
40404042

40414043

0 commit comments

Comments
 (0)