From 235665feb7c69de45fcb7692d87ec7f6f387079f Mon Sep 17 00:00:00 2001 From: Piotr Potrebka <piotr.potrebka@wpdesk.net> Date: Thu, 16 Mar 2023 10:05:43 +0100 Subject: [PATCH] fix: restore values --- changelog.txt | 7 +++++++ src/Field/CheckboxField.php | 3 +++ 2 files changed, 10 insertions(+) diff --git a/changelog.txt b/changelog.txt index 884d241..327a3dd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,12 @@ # Changelog +## [3.1.1] - 2023-03-16 +### Added +- WPEditorField +### Deprecated +- WyswigField +### Fixed + ## [3.1.0] - 2022-08-30 ### Added - de_DE translations diff --git a/src/Field/CheckboxField.php b/src/Field/CheckboxField.php index 101bc60..1411029 100644 --- a/src/Field/CheckboxField.php +++ b/src/Field/CheckboxField.php @@ -6,6 +6,9 @@ use WPDesk\Forms\Field; class CheckboxField extends BasicField { + const VALUE_TRUE = 'yes'; + const VALUE_FALSE = 'no'; + public function get_type(): string { return 'checkbox'; } -- GitLab