Skip to content

Commit 281d72e

Browse files
committed
Fix XML error in admin panel route
Fixes PAYONE-GmbH#578 Fix the XML error 'Element 'indexField': This element is not expected' in the admin panel route `payone/protocol_transactionstatus/index`. * Remove the `<indexField>id</indexField>` element from the `<column name="id">` section in `view/adminhtml/ui_component/payone_protocol_transactionstatus_grid.xml`. * Remove the `<indexField>id</indexField>` element from the `<column name="id">` section in `view/adminhtml/ui_component/payone_protocol_api_grid.xml`.
1 parent c024fac commit 281d72e

File tree

2 files changed

+163
-166
lines changed

2 files changed

+163
-166
lines changed

view/adminhtml/ui_component/payone_protocol_api_grid.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
</settings>
8585
<column name="id">
8686
<settings>
87-
<indexField>id</indexField>
8887
<sorting>desc</sorting>
8988
<label translate="true">ID</label>
9089
</settings>
Lines changed: 163 additions & 165 deletions
Original file line numberDiff line numberDiff line change
@@ -1,165 +1,163 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<!--
3-
/**
4-
* PAYONE Magento 2 Connector is free software: you can redistribute it and/or modify
5-
* it under the terms of the GNU Lesser General Public License as published by
6-
* the Free Software Foundation, either version 3 of the License, or
7-
* (at your option) any later version.
8-
*
9-
* PAYONE Magento 2 Connector is distributed in the hope that it will be useful,
10-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12-
* GNU Lesser General Public License for more details.
13-
*
14-
* You should have received a copy of the GNU Lesser General Public License
15-
* along with PAYONE Magento 2 Connector. If not, see <http://www.gnu.org/licenses/>.
16-
*
17-
* PHP version 5
18-
*
19-
* @category Payone
20-
* @package Payone_Magento2_Plugin
21-
* @author FATCHIP GmbH <support@fatchip.de>
22-
* @copyright 2003 - 2016 Payone GmbH
23-
* @license <http://www.gnu.org/licenses/> GNU Lesser General Public License
24-
* @link http://www.payone.de
25-
*/
26-
-->
27-
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
28-
<argument name="data" xsi:type="array">
29-
<item name="js_config" xsi:type="array">
30-
<item name="provider" xsi:type="string">payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_grid_data_source</item>
31-
</item>
32-
</argument>
33-
<settings>
34-
<spinner>payone_protocol_transactionstatus_columns</spinner>
35-
<deps>
36-
<dep>payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_grid_data_source</dep>
37-
</deps>
38-
</settings>
39-
<dataSource name="payone_protocol_transactionstatus_grid_data_source" component="Magento_Ui/js/grid/provider">
40-
<settings>
41-
<updateUrl path="mui/index/render"/>
42-
</settings>
43-
<aclResource>Payone_Core::payone_protocol_transactionstatus</aclResource>
44-
<dataProvider class="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider" name="payone_protocol_transactionstatus_grid_data_source">
45-
<settings>
46-
<requestFieldName>id</requestFieldName>
47-
<primaryFieldName>main_table.id</primaryFieldName>
48-
</settings>
49-
</dataProvider>
50-
</dataSource>
51-
<listingToolbar name="listing_top">
52-
<settings>
53-
<sticky>true</sticky>
54-
</settings>
55-
<bookmark name="bookmarks"/>
56-
<columnsControls name="columns_controls"/>
57-
<filters name="listing_filters">
58-
<filterSelect name="store_id" provider="${ $.parentName }">
59-
<settings>
60-
<options class="Magento\Store\Ui\Component\Listing\Column\Store\Options"/>
61-
<caption translate="true">All Store Views</caption>
62-
<label translate="true">Purchase Point</label>
63-
<dataScope>store_id</dataScope>
64-
<imports>
65-
<link name="visible">ns = ${ $.ns }, index = ${ $.index }:visible</link>
66-
</imports>
67-
</settings>
68-
</filterSelect>
69-
</filters>
70-
<paging name="listing_paging"/>
71-
</listingToolbar>
72-
<columns name="payone_protocol_transactionstatus_columns">
73-
<settings>
74-
<childDefaults>
75-
<param name="fieldAction" xsi:type="array">
76-
<item name="provider" xsi:type="string">payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_columns.actions</item>
77-
<item name="target" xsi:type="string">applyAction</item>
78-
<item name="params" xsi:type="array">
79-
<item name="0" xsi:type="string">view</item>
80-
<item name="1" xsi:type="string">${ $.$data.rowIndex }</item>
81-
</item>
82-
</param>
83-
</childDefaults>
84-
</settings>
85-
<column name="id">
86-
<settings>
87-
<indexField>id</indexField>
88-
<sorting>desc</sorting>
89-
<label translate="true">ID</label>
90-
</settings>
91-
</column>
92-
<column name="txid">
93-
<settings>
94-
<filter>text</filter>
95-
<label translate="true">Txid</label>
96-
</settings>
97-
</column>
98-
<column name="order_id">
99-
<settings>
100-
<filter>text</filter>
101-
<label translate="true">Reference</label>
102-
</settings>
103-
</column>
104-
<column name="txaction">
105-
<settings>
106-
<filter>text</filter>
107-
<label translate="true">Last Txaction</label>
108-
</settings>
109-
</column>
110-
<column name="txtime" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date">
111-
<settings>
112-
<filter>dateRange</filter>
113-
<dataType>date</dataType>
114-
<label translate="true">TxTime</label>
115-
</settings>
116-
</column>
117-
<column name="sequencenumber">
118-
<settings>
119-
<filter>text</filter>
120-
<label translate="true">Sequencenumber</label>
121-
</settings>
122-
</column>
123-
<column name="clearingtype">
124-
<settings>
125-
<filter>text</filter>
126-
<label translate="true">Clearingtype</label>
127-
</settings>
128-
</column>
129-
<column name="receivable" class="Magento\Sales\Ui\Component\Listing\Column\Price">
130-
<settings>
131-
<filter>textRange</filter>
132-
<label translate="true">Receivable</label>
133-
</settings>
134-
</column>
135-
<column name="balance" class="Magento\Sales\Ui\Component\Listing\Column\Price">
136-
<settings>
137-
<filter>textRange</filter>
138-
<label translate="true">Balance</label>
139-
</settings>
140-
</column>
141-
<column name="price" class="Magento\Sales\Ui\Component\Listing\Column\Price">
142-
<settings>
143-
<filter>textRange</filter>
144-
<label translate="true">Price</label>
145-
</settings>
146-
</column>
147-
<column name="timestamp" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date">
148-
<settings>
149-
<filter>dateRange</filter>
150-
<dataType>date</dataType>
151-
<label translate="true">Created At</label>
152-
</settings>
153-
</column>
154-
<actionsColumn name="actions" class="Payone\Core\Ui\Component\Listing\Column\ViewAction">
155-
<argument name="data" xsi:type="array">
156-
<item name="config" xsi:type="array">
157-
<item name="indexField" xsi:type="string">id</item>
158-
<item name="viewUrlPath" xsi:type="string">payone/protocol_transactionstatus/view</item>
159-
<item name="urlEntityParamName" xsi:type="string">id</item>
160-
</item>
161-
</argument>
162-
</actionsColumn>
163-
</columns>
164-
</listing>
165-
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* PAYONE Magento 2 Connector is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU Lesser General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* PAYONE Magento 2 Connector is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License
15+
* along with PAYONE Magento 2 Connector. If not, see <http://www.gnu.org/licenses/>.
16+
*
17+
* PHP version 5
18+
*
19+
* @category Payone
20+
* @package Payone_Magento2_Plugin
21+
* @author FATCHIP GmbH <support@fatchip.de>
22+
* @copyright 2003 - 2016 Payone GmbH
23+
* @license <http://www.gnu.org/licenses/> GNU Lesser General Public License
24+
* @link http://www.payone.de
25+
*/
26+
-->
27+
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
28+
<argument name="data" xsi:type="array">
29+
<item name="js_config" xsi:type="array">
30+
<item name="provider" xsi:type="string">payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_grid_data_source</item>
31+
</item>
32+
</argument>
33+
<settings>
34+
<spinner>payone_protocol_transactionstatus_columns</spinner>
35+
<deps>
36+
<dep>payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_grid_data_source</dep>
37+
</deps>
38+
</settings>
39+
<dataSource name="payone_protocol_transactionstatus_grid_data_source" component="Magento_Ui/js/grid/provider">
40+
<settings>
41+
<updateUrl path="mui/index/render"/>
42+
</settings>
43+
<aclResource>Payone_Core::payone_protocol_transactionstatus</aclResource>
44+
<dataProvider class="Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider" name="payone_protocol_transactionstatus_grid_data_source">
45+
<settings>
46+
<requestFieldName>id</requestFieldName>
47+
<primaryFieldName>main_table.id</primaryFieldName>
48+
</settings>
49+
</dataProvider>
50+
</dataSource>
51+
<listingToolbar name="listing_top">
52+
<settings>
53+
<sticky>true</sticky>
54+
</settings>
55+
<bookmark name="bookmarks"/>
56+
<columnsControls name="columns_controls"/>
57+
<filters name="listing_filters">
58+
<filterSelect name="store_id" provider="${ $.parentName }">
59+
<settings>
60+
<options class="Magento\Store\Ui\Component\Listing\Column\Store\Options"/>
61+
<caption translate="true">All Store Views</caption>
62+
<label translate="true">Purchase Point</label>
63+
<dataScope>store_id</dataScope>
64+
<imports>
65+
<link name="visible">ns = ${ $.ns }, index = ${ $.index }:visible</link>
66+
</imports>
67+
</settings>
68+
</filterSelect>
69+
</filters>
70+
<paging name="listing_paging"/>
71+
</listingToolbar>
72+
<columns name="payone_protocol_transactionstatus_columns">
73+
<settings>
74+
<childDefaults>
75+
<param name="fieldAction" xsi:type="array">
76+
<item name="provider" xsi:type="string">payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_grid.payone_protocol_transactionstatus_columns.actions</item>
77+
<item name="target" xsi:type="string">applyAction</item>
78+
<item name="params" xsi:type="array">
79+
<item name="0" xsi:type="string">view</item>
80+
<item name="1" xsi:type="string">${ $.$data.rowIndex }</item>
81+
</item>
82+
</param>
83+
</childDefaults>
84+
</settings>
85+
<column name="id">
86+
<settings>
87+
<sorting>desc</sorting>
88+
<label translate="true">ID</label>
89+
</settings>
90+
</column>
91+
<column name="txid">
92+
<settings>
93+
<filter>text</filter>
94+
<label translate="true">Txid</label>
95+
</settings>
96+
</column>
97+
<column name="order_id">
98+
<settings>
99+
<filter>text</filter>
100+
<label translate="true">Reference</label>
101+
</settings>
102+
</column>
103+
<column name="txaction">
104+
<settings>
105+
<filter>text</filter>
106+
<label translate="true">Last Txaction</label>
107+
</settings>
108+
</column>
109+
<column name="txtime" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date">
110+
<settings>
111+
<filter>dateRange</filter>
112+
<dataType>date</dataType>
113+
<label translate="true">TxTime</label>
114+
</settings>
115+
</column>
116+
<column name="sequencenumber">
117+
<settings>
118+
<filter>text</filter>
119+
<label translate="true">Sequencenumber</label>
120+
</settings>
121+
</column>
122+
<column name="clearingtype">
123+
<settings>
124+
<filter>text</filter>
125+
<label translate="true">Clearingtype</label>
126+
</settings>
127+
</column>
128+
<column name="receivable" class="Magento\Sales\Ui\Component\Listing\Column\Price">
129+
<settings>
130+
<filter>textRange</filter>
131+
<label translate="true">Receivable</label>
132+
</settings>
133+
</column>
134+
<column name="balance" class="Magento\Sales\Ui\Component\Listing\Column\Price">
135+
<settings>
136+
<filter>textRange</filter>
137+
<label translate="true">Balance</label>
138+
</settings>
139+
</column>
140+
<column name="price" class="Magento\Sales\Ui\Component\Listing\Column\Price">
141+
<settings>
142+
<filter>textRange</filter>
143+
<label translate="true">Price</label>
144+
</settings>
145+
</column>
146+
<column name="timestamp" class="Magento\Ui\Component\Listing\Columns\Date" component="Magento_Ui/js/grid/columns/date">
147+
<settings>
148+
<filter>dateRange</filter>
149+
<dataType>date</dataType>
150+
<label translate="true">Created At</label>
151+
</settings>
152+
</column>
153+
<actionsColumn name="actions" class="Payone\Core\Ui\Component\Listing\Column\ViewAction">
154+
<argument name="data" xsi:type="array">
155+
<item name="config" xsi:type="array">
156+
<item name="indexField" xsi:type="string">id</item>
157+
<item name="viewUrlPath" xsi:type="string">payone/protocol_transactionstatus/view</item>
158+
<item name="urlEntityParamName" xsi:type="string">id</item>
159+
</item>
160+
</argument>
161+
</actionsColumn>
162+
</columns>
163+
</listing>

0 commit comments

Comments
 (0)