Skip to content

Resolve "Number of results" and "Number of Uses" in edit "Search Term" missing validate number (issue 24100) #24101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions app/code/Magento/Search/Block/Adminhtml/Term/Edit/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
* Adminhtml tag edit form
*
*/
declare(strict_types=1);

namespace Magento\Search\Block\Adminhtml\Term\Edit;

/**
* Edit Form Block
*
* Class \Magento\Search\Block\Adminhtml\Term\Edit\Form
*/
class Form extends \Magento\Backend\Block\Widget\Form\Generic
{
/**
Expand Down Expand Up @@ -114,7 +121,8 @@ protected function _prepareForm()
'label' => __('Number of results'),
'title' => __('Number of results (For the last time placed)'),
'note' => __('For the last time placed.'),
'required' => true
'required' => true,
'class' => 'required-entry validate-digits validate-zero-or-greater'
]
);

Expand All @@ -125,7 +133,8 @@ protected function _prepareForm()
'name' => 'popularity',
'label' => __('Number of Uses'),
'title' => __('Number of Uses'),
'required' => true
'required' => true,
'class' => 'required-entry validate-digits validate-zero-or-greater'
]
);
}
Expand Down