File tree Expand file tree Collapse file tree 5 files changed +15
-60
lines changed
Integration/view/adminhtml/templates Expand file tree Collapse file tree 5 files changed +15
-60
lines changed Original file line number Diff line number Diff line change 7
7
8
8
<?php
9
9
/** @var $block \Magento\Integration\Block\Adminhtml\Integration\Edit\Tab\Webapi */
10
+ $ serializer = new \Magento \Framework \Serialize \Serializer \Json ();
10
11
?>
11
12
12
13
<?= $ block ->getChildHtml () ?>
41
42
42
43
<div class="control">
43
44
<div class="tree x-tree" data-role="resource-tree" data-mage-init='<?=
44
- $ block -> escapeHtml ( $ block -> toJson ([
45
+ $ serializer -> serialize ([
45
46
'rolesTree ' => [
46
47
"treeInitData " => $ block ->getTree (),
47
48
"treeInitSelectedData " => $ block ->getSelectedResources (),
48
49
],
49
- ])) ; ?> '>
50
+ ]); ?> '>
50
51
</div>
51
52
</div>
52
53
</div>
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 8
8
<page xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : noNamespaceSchemaLocation =" urn:magento:framework:View/Layout/etc/page_configuration.xsd" >
9
9
<body >
10
10
<referenceContainer name =" form.buttons" >
11
- <block class =" Magento\Backend\Block\Template" name =" adminhtml_auth_login_forgotpassword" template =" Magento_User::admin/forgotpassword_url.phtml" >
12
- <arguments >
13
- <argument name =" view_model" xsi : type =" object" >Magento\User\ViewModel\ForgotPasswordUrlProvider</argument >
14
- </arguments >
15
- </block >
11
+ <block class =" Magento\Backend\Block\Template" name =" adminhtml_auth_login_forgotpassword" template =" Magento_User::admin/forgotpassword_url.phtml" />
16
12
</referenceContainer >
17
13
</body >
18
14
</page >
Original file line number Diff line number Diff line change 5
5
*/
6
6
?>
7
7
<div class="links">
8
- <a class="action-forgotpassword" href=" <?= $ block -> escapeUrl (
9
- $ block ->getViewModel () ->getUrl ('adminhtml/auth/forgotpassword ' , ['_nosecret ' => true ])
10
- ) ?> "> <?= $ block ->escapeHtml (__ ('Forgot your password? ' )) ?>
8
+ <a class="action-forgotpassword"
9
+ href=" <?= $ block ->escapeUrl ( $ block ->getUrl ('adminhtml/auth/forgotpassword ' , ['_nosecret ' => true ])) ?> ">
10
+ <?= $ block ->escapeHtml (__ ('Forgot your password? ' )) ?>
11
11
</a>
12
12
</div>
Original file line number Diff line number Diff line change 7
7
8
8
<?php
9
9
/** @var $block \Magento\User\Block\Role\Tab\Edit */
10
+ $ serializer = new \Magento \Framework \Serialize \Serializer \Json ();
10
11
?>
11
12
12
13
<?= $ block ->getChildHtml () ?>
40
41
<label class="label"><span><?= $ block ->escapeHtml (__ ('Resources ' )) ?> </span></label>
41
42
42
43
<div class="control">
43
- <div class="tree x-tree" data-role="resource-tree"
44
- data-mage-init='<?= $ block ->escapeHtml (
45
- $ block ->toJson (
46
- [
47
- 'rolesTree ' => [
48
- "treeInitData " => $ block ->getTree (),
49
- "treeInitSelectedData " => $ block ->getSelectedResources (),
50
- ],
51
- ]
52
- )
53
- ); ?> '>
44
+ <div class="tree x-tree" data-role="resource-tree" data-mage-init='<?=
45
+ $ serializer ->serialize ([
46
+ 'rolesTree ' => [
47
+ "treeInitData " => $ block ->getTree (),
48
+ "treeInitSelectedData " => $ block ->getSelectedResources (),
49
+ ],
50
+ ]); ?> '>
54
51
</div>
55
52
</div>
56
53
</div>
You can’t perform that action at this time.
0 commit comments