Skip to content

Commit f5e7cfe

Browse files
committed
Resolve No validate "Sort Order" in Widget Form (issue 24154)
1 parent 0053757 commit f5e7cfe

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 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
*
@@ -198,7 +198,7 @@ protected function _prepareForm()
198198
'name' => 'sort_order',
199199
'label' => __('Sort Order'),
200200
'title' => __('Sort Order'),
201-
'class' => '',
201+
'class' => 'validate-number',
202202
'required' => false,
203203
'note' => __('Sort Order of widget instances in the same container')
204204
]

0 commit comments

Comments
 (0)