Skip to content

Commit 1579377

Browse files
authored
ENGCOM-5647: Resolve No validate "Sort Order" in Widget Form (issue 24154) #24155
2 parents c4e5faa + cdec580 commit 1579377

File tree

1 file changed

+4
-2
lines changed
  • app/code/Magento/Widget/Block/Adminhtml/Widget/Instance/Edit/Tab

1 file changed

+4
-2
lines changed

app/code/Magento/Widget/Block/Adminhtml/Widget/Instance/Edit/Tab/Main.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
6+
declare(strict_types=1);
77
/**
88
* Widget Instance Main tab block
99
*
@@ -12,6 +12,8 @@
1212
namespace Magento\Widget\Block\Adminhtml\Widget\Instance\Edit\Tab;
1313

1414
/**
15+
* Edit Main Tab
16+
*
1517
* @api
1618
* @since 100.0.2
1719
*/
@@ -198,7 +200,7 @@ protected function _prepareForm()
198200
'name' => 'sort_order',
199201
'label' => __('Sort Order'),
200202
'title' => __('Sort Order'),
201-
'class' => '',
203+
'class' => 'validate-number',
202204
'required' => false,
203205
'note' => __('Sort Order of widget instances in the same container')
204206
]

0 commit comments

Comments
 (0)