File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
app/code/Magento/Search/Block/Adminhtml/Term/Edit Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 8
8
* Adminhtml tag edit form
9
9
*
10
10
*/
11
+ declare (strict_types=1 );
12
+
11
13
namespace Magento \Search \Block \Adminhtml \Term \Edit ;
12
14
15
+ /**
16
+ * Edit Form Block
17
+ *
18
+ * Class \Magento\Search\Block\Adminhtml\Term\Edit\Form
19
+ */
13
20
class Form extends \Magento \Backend \Block \Widget \Form \Generic
14
21
{
15
22
/**
@@ -114,7 +121,8 @@ protected function _prepareForm()
114
121
'label ' => __ ('Number of results ' ),
115
122
'title ' => __ ('Number of results (For the last time placed) ' ),
116
123
'note ' => __ ('For the last time placed. ' ),
117
- 'required ' => true
124
+ 'required ' => true ,
125
+ 'class ' => 'required-entry validate-digits validate-zero-or-greater '
118
126
]
119
127
);
120
128
@@ -125,7 +133,8 @@ protected function _prepareForm()
125
133
'name ' => 'popularity ' ,
126
134
'label ' => __ ('Number of Uses ' ),
127
135
'title ' => __ ('Number of Uses ' ),
128
- 'required ' => true
136
+ 'required ' => true ,
137
+ 'class ' => 'required-entry validate-digits validate-zero-or-greater '
129
138
]
130
139
);
131
140
}
You can’t perform that action at this time.
0 commit comments