瀏覽代碼

Correction CitiesController

reduction
Guillaume 4 年之前
父節點
當前提交
d2868e751a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      ShopBundle/Controller/CitiesController.php

+ 1
- 1
ShopBundle/Controller/CitiesController.php 查看文件

@@ -24,7 +24,7 @@ class CitiesController extends AbstractController
'boost' => 'population',
] ;

if(strlen($term) == 5) {
if(strlen($term) == 5 && is_numeric($term)) {
$data['codePostal'] = $term ;
}
else {

Loading…
取消
儲存