Skip to content

Commit

Permalink
Fixed #12942
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 21, 2023
1 parent 2854183 commit b5e752c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Fixed a bug where relation data was getting deleted when running garbage collection on PostgreSQL. ([#9905](https://github.com/craftcms/cms/issues/9905))
- Fixed a bug where Lightswitch fields’ “OFF Label” and “ON Label” settings weren’t getting translated. ([#12942](https://github.com/craftcms/cms/issues/12942))
- Updated svg-sanitizer to 0.16. ([#12943](https://github.com/craftcms/cms/issues/12943))

## 3.8.4 - 2023-03-20
Expand Down
4 changes: 2 additions & 2 deletions src/fields/Lightswitch.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ protected function inputHtml($value, ElementInterface $element = null): string
'describedBy' => $this->describedBy,
'name' => $this->handle,
'on' => (bool)$value,
'onLabel' => $this->onLabel,
'offLabel' => $this->offLabel,
'onLabel' => Craft::t('site', $this->onLabel),
'offLabel' => Craft::t('site', $this->offLabel),
]);
}

Expand Down

0 comments on commit b5e752c

Please sign in to comment.