Skip to content

Commit

Permalink
fix grade_lcl and grade_abbr updates on action setProperty:grade
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRDOrazio committed Dec 1, 2024
1 parent ed706fe commit 1570b94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FestivityCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ public function setProperty(string $key, string $property, string|int|bool $valu
if ($key === "grade") {
$this->handleGradeProperty($key, $value, $oldValue);
// Consequentially, we also need to update the grade_lcl and grade_abbr properties
$this->festivities[ $key ]->grade_lcl = self::$LitGrade->i18n($this->grade, false);
$this->festivities[ $key ]->grade_abbr = self::$LitGrade->i18n($this->grade, false, true);
$this->festivities[ $key ]->grade_lcl = self::$LitGrade->i18n($this->festivities[ $key ]->grade, false);
$this->festivities[ $key ]->grade_abbr = self::$LitGrade->i18n($this->festivities[ $key ]->grade, false, true);
}
return true;
}
Expand Down

0 comments on commit 1570b94

Please sign in to comment.