Commit 6aee683770f8d3b5eb719e72ed90042e701d7529

Authored by Anastasia
1 parent 0bd39a9a

city_id in admin

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
views/shop/_form.php
@@ -115,7 +115,8 @@ @@ -115,7 +115,8 @@
115 115
116 <?= Select2::widget( 116 <?= Select2::widget(
117 [ 117 [
118 - 'name' => 'Shop[city_id]', 118 + 'model' => $model,
  119 + 'attribute' => 'city_id',
119 'value' => array_keys($model->cities), 120 'value' => array_keys($model->cities),
120 'data' => $model->cities, 121 'data' => $model->cities,
121 'options' => [ 'placeholder' => 'Выберите город ...' ], 122 'options' => [ 'placeholder' => 'Выберите город ...' ],