-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Fix integers being cast to decimal in some particular cases #1198
Conversation
This seems not fix the problem ... all tests with flat product tables OFF
Correct output should be 2
We should also check |
@sreichel I've just tried again on my install and it works fine. Remember I'm running 20.0.2 so maybe something changed along the way if you're using a newer version. This bug is definitely still present in the last official Magento 1 release. Only one product created, flat tables off. First run without the fix gives me "2.000", then after applying the fix it gives me "2". |
@digitalpianism tested again with 19.4.x ... (Can you please check if output is okay with
|
Tested you example from stackexchange and it works. ... but something is still wrong with this testscript. And we should check why type changes from php7 to 8 ... |
@@ -108,7 +108,7 @@ public function getLoadAttributesSelectGroups($selects) | |||
foreach ($selects as $eavType => $selectGroup) { | |||
$mainGroup = array_merge($mainGroup, $selectGroup); | |||
} | |||
return [$mainGroup]; | |||
return $mainGroup; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems like a strong behavior change
It is a strong change but the code using this method has been changed accordingly
Raphael Petrini
… Le 4 sept. 2022 à 10:40, Daniel Fahlke ***@***.***> a écrit :
getLoadAttributesSelectGroups
|
Changed return type seem to come from here ... https://www.php.net/manual/en/migration81.incompatible.php#migration81.incompatible.pdo.mysql
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested.
We have a bug with theses changes (OpenMage 20.0.17, PHP 8.0.25 and 8.2.0-rc5, flat catalog enabled for products, also with zf1-future instead of zend - but with zend same problem). I don't understand why. We have an attribute, text type, id 1276. On product edit page from OpenMage backend for store 1, I write "abc" and I save, the database is updated (see bellow), but in backend, the default value (123) is displayed (the checkbox use default value is not checked). -- When I revert this PR, if I refresh backend page, the good value (abc) is displayed. -- Now, if I didn't revert the PR, I can remove the line id 888745 in Now, I update the new line id with the old line id (888745), I refresh backend page, the default value (123) is displayed. Now, I revert this PR, I refresh backend page, the good value (def) is displayed. -- With adminer I searched 888745 in all tables of the database, only one result. |
Description (*)
This provides a fix for the issue #1192 that I have created.
Details about the fix can be found here: https://magento.stackexchange.com/questions/105244/magento-1-admin-product-grid-column-value-disappear-on-name-search/105421
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)