diff --git a/engine/Shopware/Controllers/Backend/Search.php b/engine/Shopware/Controllers/Backend/Search.php index 6b1f966fbec..e7117731928 100644 --- a/engine/Shopware/Controllers/Backend/Search.php +++ b/engine/Shopware/Controllers/Backend/Search.php @@ -23,6 +23,7 @@ */ use Doctrine\DBAL\Connection; +use Shopware\Models\Article\Article; /** * Backend search controller @@ -353,6 +354,12 @@ private function addSearchTermCondition($entity, $query, $term) return 'entity.' . $field; }, $fields); + switch ($entity) { + case Article::class: + $fields[] = 'mainDetail.number'; + break; + } + $builder->addSearchTerm($query, $term, $fields); }