GX-Bug #62596 » ProductRepositoryDeleter-fix.patch
src/GXMainComponents/Services/Core/Product/Repositories/Deleter/ProductRepositoryDeleter.inc.php (date 1535727240000) | ||
---|---|---|
193 | 193 |
->result_array()); |
194 | 194 |
if(count($propertyAdminSelectIds) > 0) |
195 | 195 |
{ |
196 |
$this->db->where_in('products_properties_admin_select_id', implode(',', $propertyAdminSelectIds)) |
|
197 |
->delete('products_properties_admin_select'); |
|
196 |
$chunkedIds = array_chunk($propertyAdminSelectIds, 100); |
|
197 |
|
|
198 |
foreach($chunkedIds as $ids) |
|
199 |
{ |
|
200 |
$this->db->where_in('products_properties_admin_select_id', implode(',', $ids)) |
|
201 |
->delete('products_properties_admin_select'); |
|
202 |
} |
|
198 | 203 |
} |
199 | 204 |
|
200 | 205 |
return $this; |