-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add events to add fields in tab form #405
Comments
You can use interceptors on setForm to implement this. |
@igor-svizev , |
@kandy , could you provide example how to make it? |
@igor-svizev , we will file this issue to our internal bug tracker. Thank you for reporting this to us! |
What going to be use-case with events? It seems like much easier to create new block and configure layout to use it. |
@maksek how I can add new fields to existing forms, as example if my module will add some field to admin user form? |
You can define "before" plugin on $this->setForm($form) method of block and get $form as arguments, and change form as you need. |
@kandy this approach will work, but I think here we need an explicit extension point, same as for addTab |
Should this still be open if the tendency is to move to UI components for admin forms? |
@tzyganu Very good question. Since we have a couple alternative options to add fields to old forms without explicit event, and taking into account that we are moving to UI Components for admin forms, it is reasonable to close this issue. |
I think this issue can be closed |
Bug MAGETWO-56699 [GITHUB] Paypal checkout not possible with products that have custom options #5938 - for mainline MAGETWO-58290 [Github]Empty product option is added on each PUT request #5963 MAGETWO-58136 [Github] Shipping and billing address are not set if order placed with payment action Sale #6438 MAGETWO-55608 [GITHUB] M2.1: Not scrollable picture on mobile / product page #5302 MAGETWO-58285 Ajax error message doesn't display in backend MAGETWO-58338 [Github]Problem adding attribute options that start with a number via REST Api #5715 MAGETWO-52575 Unable to apply free shipping to specified method when creating order in admin MAGETWO-57078 [GITHUB] Can't set customer group when creating a new order in the admin. #6162 MAGETWO-58039 Table rate shipping not applying correctly - for mainline
… Required parameter "shipping_carrier_code" is missin #405
…ed instead of Required parameter "shipping_carrier_code" is missin #405
…lidation CABPI-279: Cache invalidation
For now we have a lot places, that contains code like this:
But we haven't events to add additional fields.
Example:
magento2/app/code/Magento/Catalog/Block/Adminhtml/Product/Edit/Tab/Price.php
Line 39 in cc63630
magento2/app/code/Magento/Adminhtml/Block/System/Cache/Form.php
Line 49 in 0849373
The text was updated successfully, but these errors were encountered: