Commit 4837b0f54ccb5d90cd65c7195669fb7d6a807193

Authored by Administrator
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,7 +70,7 @@ $('#orders-delivery input[type=\"radio\"]').click(function(){
70 <div class="input-blocks-group radio_grp hidden_box"> 70 <div class="input-blocks-group radio_grp hidden_box">
71 <div class="input-blocks-wrapper"> 71 <div class="input-blocks-wrapper">
72 <?= $form->field($modelOrder, 'delivery') 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 'item' => function($index, $label, $name, $checked, $value) { 74 'item' => function($index, $label, $name, $checked, $value) {
75 $return = '<div class="custom-form-buttons">'; 75 $return = '<div class="custom-form-buttons">';
76 $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >'; 76 $return .= '<input class="custom-radio" id="custom-radio-' . $value . '" ' . ( $checked ? "checked" : "" ) . ' type="radio" name="' . $name . '" value="' . $value . '" >';