Browse Source

Correction product.productDistribution[0] non défini

dev
Guillaume 4 years ago
parent
commit
cf89753eb6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      producer/views/order/order.php

+ 1
- 1
producer/views/order/order.php View File

</tr> </tr>
</thead> </thead>
<tbody> <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"> <td class="photo">
<img v-if="product.photo.length" class="photo-product" :src="'<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/uploads/'+product.photo" /> <img v-if="product.photo.length" class="photo-product" :src="'<?php echo Yii::$app->urlManager->getBaseUrl(); ?>/uploads/'+product.photo" />
</td> </td>

Loading…
Cancel
Save