You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$this->addSql("UPDATE s_product_streams SET sorting_id = (SELECT id FROM s_search_custom_sorting WHERE name = '". $name ."' LIMIT 1) WHERE id = " . (int) $sorting['id']);
185
+
$this->addSql("UPDATE s_product_streams SET sorting_id = (SELECT id FROM s_search_custom_sorting WHERE name = '". $name ."' LIMIT 1) WHERE id = " . (int) $sorting['id']);
162
186
}
163
187
}
164
188
165
189
/**
166
190
* @param string $sorting
191
+
*
167
192
* @return int|null
168
193
*/
169
194
privatefunctiongetIdOfStreamSorting($sorting)
@@ -183,6 +208,7 @@ private function getIdOfStreamSorting($sorting)
183
208
if ($parameters['direction'] == 'desc') {
184
209
return4;
185
210
}
211
+
186
212
return3;
187
213
case ReleaseDateSorting::class:
188
214
return1;
@@ -191,12 +217,13 @@ private function getIdOfStreamSorting($sorting)
191
217
case SearchRankingSorting::class:
192
218
return7;
193
219
}
220
+
194
221
returnnull;
195
222
}
196
223
197
224
privatefunctionimportSortingTranslations()
198
225
{
199
-
$shops = $this->connection->query("SELECT id, main_id, locale_id FROM s_core_shops")->fetchAll(PDO::FETCH_ASSOC);
226
+
$shops = $this->connection->query('SELECT id, main_id, locale_id FROM s_core_shops')->fetchAll(PDO::FETCH_ASSOC);
0 commit comments