magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.47k stars 9.29k forks source link

UI Component forms not related with any model throw fatal error #13573

Open mgarciaebo opened 6 years ago

mgarciaebo commented 6 years ago

It seems that it's impossible to create stand-alone forms using UI Components. I mean, simple forms, not attached to a collection (like the standard import-export forms), because Magento expects for a collection in order to apply filters, and a bunch of other things.

Those kind of forms can still be inserted using blocks and layout injection, as usual, but you encourage us to use UI Components. Actually, classes as Backend\Block\Widget\Form and Backend\Block\Widget\Form\Generic, has been deprecated in favor of UI Component implementation, so it makes no sense that this doesn't work.

Preconditions

  1. Magento 2.2.2; 2.3-develop
  2. Standard LAMP environment - PHP 7.1 - MySQL 5.6

Steps to reproduce

  1. Starting from a vanilla Magento, download, install and enable your own sample Form UI Component, following the instructions given at: https://github.com/magento/magento2-samples/tree/master/sample-module-form-uicomponent
  2. Go to the URL provided by the extension, which is [magento2-admin-url]/sampleform

Expected result

  1. The following sample form should be displayed: sample_form

Actual result

  1. A fatal error is thrown as shown here: admin_sampleform_index_index_key_f145dba12a93d0ec1e0bdfa0632d6f8e1fbe34d83a0f36d60001f3293f41610d_
magento-engcom-team commented 6 years ago

@mgarciaavz, thank you for your report. We've acknowledged the issue and added to our backlog.

mgarciaebo commented 6 years ago

I'm working on this #distributed-cd

magento-engcom-team commented 6 years ago

@mgarciaavz thank you for joining. Please accept team invitation here and self-assign the issue.

mgarciaebo commented 6 years ago

Hi @sidolov,

this issue is fixed here: https://github.com/magento/magento2/pull/13574

Regards!

m2-assistant[bot] commented 5 years ago

Hi @engcom-Delta. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:


magedad commented 2 years ago

@magento give me 2.3.7-p2 instance

magento-deployment-service[bot] commented 2 years ago

Hi @magedad. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 2 years ago

Hi @magedad, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.