-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Can not select multiple statuses with Prototype 1.7.3 in Reports #1549
Comments
I did all your steps except the third. This is an OpenMage 20.0.8 installed from scratch based on the sample package from Magento 1.9. Here are the results: Before pressing [Show Report] button After pressing [Show Report] button The bug is confirmed! It does not appear in version 20.0.6 that I am currently working on. I suggest immediately replacing the Prototype library with the previous version and carefully checking version 1.7.3 compared to 1.7 before adding to the new versions to avoid any issue. @luigifab - I appreciate for your help. |
Iam also in favor of reverting it for now. |
Ref this commit Add test and changes for serializing forms with multiple select to a string to work again in prototype repo, the serialization of multiple select is supposed to be like this this.assertEqual("peewee=herman&colors=blue&colors=yellow&colors=not+grey&number=2", form.serialize(false)); A use case for array insead of returning comma-delimted string is when the value contains comma, which will be wrongly parsed. The title of the commit says to make it work again, it so happens we can test that in version 1.6: Note the popup is
For this issue, the multiple select element is correcly named So, if that is the case, what do we do? Revert prototype and re-introduce the "bug", or fix OM? |
If someone makes it quick I suggest fixing OM and checking the new library too. A comparison with the previous version we used in OM for a long time is a must. |
I reverted the change to the serialize behavior so it is compatible with the old Prototype without reverting the entire file in #1552 |
Now that we have a quick fix that works maybe we should consider whether the initial form of the Prototype library brings real improvements. I am of the opinion that if it brings improvements then it should be used as such, following that the change will happen in the OpenMage code as suggested @luigifab suggested. |
With the update of Prototype 1.7.3, we can not select multiple order statuses in Reports.
Steps to reproduce
Form.serializeElements($$('#sales_report_order_statuses'))
Results
"order_statuses%5B%5D=closed%2Ccomplete"
"order_statuses%5B%5D=closed&order_statuses%5B%5D=complete"
It break
Mage_Adminhtml_Block_Report_Filter_Form::_initFormValues
.Perhaps we can fix with:
The text was updated successfully, but these errors were encountered: