Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-forms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-forms
Commits
10f2de2a
You need to sign in or sign up before continuing.
Commit
10f2de2a
authored
4 years ago
by
dyszczo
Browse files
Options
Downloads
Patches
Plain Diff
fix(field): InputNumberField extends invalid class
parent
44690bd7
No related branches found
No related tags found
1 merge request
!9
Bugfix/number field namespace fix
Pipeline
#5299
failed
4 years ago
Stage: prepare
Stage: tools
Stage: tests
Stage: pre-deploy
Stage: deploy
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.txt
+1
-0
1 addition, 0 deletions
changelog.txt
src/Field/InputNumberField.php
+15
-16
15 additions, 16 deletions
src/Field/InputNumberField.php
with
16 additions
and
16 deletions
changelog.txt
+
1
−
0
View file @
10f2de2a
# Changelog
# Changelog
## [2.2.2] - 2020-09-23
### Changed
### Changed
- Fixed namespace for number field
- Fixed namespace for number field
...
...
This diff is collapsed.
Click to expand it.
src/Field/InputNumberField.php
+
15
−
16
View file @
10f2de2a
...
@@ -3,20 +3,19 @@
...
@@ -3,20 +3,19 @@
namespace
WPDesk\Forms\Field
;
namespace
WPDesk\Forms\Field
;
use
WPDesk\Forms\Sanitizer\TextFieldSanitizer
;
use
WPDesk\Forms\Sanitizer\TextFieldSanitizer
;
class
InputNumberField
extends
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
TextFieldSanitizer
();
}
}
public
function
get_template_name
()
{
public
function
get_template_name
()
{
return
'input-number'
;
return
'input-number'
;
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment