diff --git a/changelog.txt b/changelog.txt index c7f9fc81096af8afaa5956f2e3475e5d79091d87..924b2633cf2be658fc63a3109b18d64b9c077cd6 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,8 +1,12 @@ # Changelog +## [2.2.2] - 2020-09-23 +### Changed +- Fixed namespace for number field + ## [2.2.1] - 2020-08-18 ### Changed -- Fiexed bug with the "select multiple" field +- Fixed bug with the "select multiple" field ## [2.2.0] - 2020-07-30 ### Added diff --git a/src/Field/InputNumberField.php b/src/Field/InputNumberField.php index 898cef6e7d4783215d5dfe6881c83138660b095d..a563cd29fe80b418c0e1aee195883d512300b773 100644 --- a/src/Field/InputNumberField.php +++ b/src/Field/InputNumberField.php @@ -1,22 +1,21 @@ <?php -namespace DropshippingXmlVendor\WPDesk\Forms\Field; +namespace WPDesk\Forms\Field; -use DropshippingXmlVendor\WPDesk\Forms\Sanitizer\TextFieldSanitizer; -class InputNumberField extends \DropshippingXmlVendor\WPDesk\Forms\Field\BasicField -{ - public function __construct() - { - parent::__construct(); - $this->set_default_value(''); - $this->set_attribute('type', 'number'); - } - public function get_sanitizer() - { - return new \DropshippingXmlVendor\WPDesk\Forms\Sanitizer\TextFieldSanitizer(); - } - public function get_template_name() - { - return 'input-number'; - } +use WPDesk\Forms\Sanitizer\TextFieldSanitizer; + +class InputNumberField extends BasicField { + public function __construct() { + parent::__construct(); + $this->set_default_value( '' ); + $this->set_attribute( 'type', 'number' ); + } + + public function get_sanitizer() { + return new TextFieldSanitizer(); + } + + public function get_template_name() { + return 'input-number'; + } }