Skip to content
Snippets Groups Projects
Commit 54cd0243 authored by Dyszczo's avatar Dyszczo
Browse files

Merge branch 'bugfix/number-field-namespace-fix' into 'master'

Bugfix/number field namespace fix

See merge request !9
parents b283ca75 10f2de2a
No related branches found
Tags 2.2.2
1 merge request!9Bugfix/number field namespace fix
Pipeline #5334 failed with stages
in 1 minute and 10 seconds
# Changelog # Changelog
## [2.2.2] - 2020-09-23
### Changed
- Fixed namespace for number field
## [2.2.1] - 2020-08-18 ## [2.2.1] - 2020-08-18
### Changed ### Changed
- Fiexed bug with the "select multiple" field - Fixed bug with the "select multiple" field
## [2.2.0] - 2020-07-30 ## [2.2.0] - 2020-07-30
### Added ### Added
......
<?php <?php
namespace DropshippingXmlVendor\WPDesk\Forms\Field; namespace WPDesk\Forms\Field;
use DropshippingXmlVendor\WPDesk\Forms\Sanitizer\TextFieldSanitizer; use WPDesk\Forms\Sanitizer\TextFieldSanitizer;
class InputNumberField extends \DropshippingXmlVendor\WPDesk\Forms\Field\BasicField
{ class InputNumberField extends BasicField {
public function __construct() public function __construct() {
{ parent::__construct();
parent::__construct(); $this->set_default_value( '' );
$this->set_default_value(''); $this->set_attribute( 'type', 'number' );
$this->set_attribute('type', 'number'); }
}
public function get_sanitizer() public function get_sanitizer() {
{ return new TextFieldSanitizer();
return new \DropshippingXmlVendor\WPDesk\Forms\Sanitizer\TextFieldSanitizer(); }
}
public function get_template_name() public function get_template_name() {
{ return 'input-number';
return 'input-number'; }
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment