Commit 4837b0f54ccb5d90cd65c7195669fb7d6a807193
1 parent
7459c206
image size
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
frontend/views/basket/index.php
... | ... | @@ -70,7 +70,7 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){ |
70 | 70 | <div class="input-blocks-group radio_grp hidden_box"> |
71 | 71 | <div class="input-blocks-wrapper"> |
72 | 72 | <?= $form->field($modelOrder, 'delivery') |
73 | - ->radioList(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title'),[ | |
73 | + ->radioList(array_pop(ArrayHelper::map(Delivery::find()->where(['parent_id'=>0])->asArray()->all(), 'id', 'title')),[ | |
74 | 74 | 'item' => function($index, $label, $name, $checked, $value) { |
75 | 75 | $return = '<div class="custom-form-buttons">'; |
76 | 76 | $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >'; | ... | ... |