Closed shifra123 closed 7 years ago
Hello! Thank you for reporting. Please provide the whole code of your controller.
When I tried to reproduce your issue I got this:
Here is my code: Webkul.zip
Please check if the problem is actual for you.
@TomashKhamlai Thank for responding, Just added your code to my project and seems like the error still exist for me
Reproducible on 2.1.5, 2.1.6 and latest at this moment 2.1.7. Not reproducible on 2.2.0 (GitHub branch develop). Internal ticket MAGETWO-71177 was created to address this issue.
@shifra123, thank you for your report. The issue is already fixed in 2.2.0
Preconditions
Issue happens when adding a custom tab to customer_form.xml via block file
Steps to reproduce
Add block to customer_index_edit.xml layout
Block file extends
\Magento\Backend\Block\Widget\Form\Generic implements TabInterface
In
function _prepareForm()
adding a new filedset that will add a new form elementRun code
Select more then one option in multiselect above
Save form
In save controller check the value of this
$this->getRequest()->getPost('destination')
Expected result
It should return for the multiselect all options selected
Actual result
It always returns one option