-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Forwardport] Ensure integer values are not quoted as strings #18961
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
Changes from 1 commit
ef37fb1
1922d1a
f815a23
67d05af
ef54c99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2021,11 +2021,7 @@ protected function _applyProductLimitations() | |
| $this->getConnection()->quoteInto('cat_index.store_id=?', $filters['store_id'], 'int'), | ||
| ]; | ||
| if (isset($filters['visibility']) && !isset($filters['store_table'])) { | ||
| $conditions[] = $this->getConnection()->quoteInto( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still not reverted here, please use the more readable version with multiple lines |
||
| 'cat_index.visibility IN(?)', | ||
| $filters['visibility'], | ||
| 'int' | ||
| ); | ||
| $conditions[] = $this->getConnection()->quoteInto('cat_index.visibility IN(?)', $filters['visibility'], 'int'); | ||
| } | ||
| $conditions[] = $this->getConnection()->quoteInto('cat_index.category_id=?', $filters['category_id'], 'int'); | ||
| if (isset($filters['category_is_anchor'])) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -284,8 +284,8 @@ public function update() | |
|
|
||
| for ($vsFrom = $lastVersionId; $vsFrom < $currentVersionId; $vsFrom += $versionBatchSize) { | ||
| // Don't go past the current version for atomicy. | ||
| $versionTo = min($currentVersionId, $vsFrom + $versionBatchSize); | ||
| $ids = array_map('intval', $this->getChangelog()->getList($vsFrom, $versionTo)); | ||
| $versionTo = min($currentVersionId, $versionFrom + $versionBatchSize); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ihor-sviziev Done. |
||
| $ids = array_map('intval', $this->getChangelog()->getList($versionFrom, $versionTo)); | ||
|
|
||
| // We run the actual indexer in batches. | ||
| // Chunked AFTER loading to avoid duplicates in separate chunks. | ||
|
|
||
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.
Previously code was the same as in 2.2-develop, so it's better to keep it as it was before. Please revert this change
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.
@ihor-sviziev Done.