Pārlūkot izejas kodu

Correction product.productDistribution[0] non défini

dev
Guillaume pirms 4 gadiem
vecāks
revīzija
cf89753eb6
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      producer/views/order/order.php

+ 1
- 1
producer/views/order/order.php Parādīt failu

@@ -178,7 +178,7 @@ $this->setTitle('Commander') ;
</tr>
</thead>
<tbody>
<tr v-for="product in products" v-if="product.productDistribution[0].active == 1">
<tr v-for="product in products" v-if="product.productDistribution && product.productDistribution[0] && product.productDistribution[0].active == 1">
<td class="photo">
<img v-if="product.photo.length" class="photo-product" :src="'<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/uploads/'+product.photo" />
</td>

Notiek ielāde…
Atcelt
Saglabāt