I'm using EaDesgin custom module to print the PDF invoice since I used Magento 2.4.2. After we did upgrade to Magento 2.4.5-p1, we faced an issue when we try to edit the pdf template from the template list page. When I open ite from google chrome on computer has static IP address it shows only the last template id but when I use google chrome browser from different computer has dynamic IP it shows all templates IDs. I attached screen shots from both computers. Please help to fix this issue.Screen shot with correct view - Screen shot with incorrect view
1 Answer
Try to replace the data source section
<dataSource name="your_grid_list_data_source">
<argument name="dataProvider" xsi:type="configurableObject">
<argument name="class" xsi:type="string">Magento\Framework\View\Element\UiComponent\DataProvider\DataProvider</argument>
<argument name="name" xsi:type="string">your_grid_list_data_source</argument>
<argument name="primaryFieldName" xsi:type="string">item_id</argument>
<argument name="requestFieldName" xsi:type="string">item_id</argument>
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="update_url" xsi:type="url" path="mui/index/render"/>
</item>
</argument>
</argument>
<argument name="data" xsi:type="array">
<item name="js_config" xsi:type="array">
<item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>
<item name="storageConfig" xsi:type="array">
<item name="indexField" xsi:type="string">item_id</item>
</item>
</item>
</argument>
</dataSource>
Note: Please add your data source name and primary key column name.