瀏覽代碼

Erreur : Commande introuvable #1027

feature/souke
Guillaume 1 年之前
父節點
當前提交
1debf950c1
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. +2
    -1
      producer/controllers/OrderController.php
  2. +1
    -1
      producer/views/order/order.php

+ 2
- 1
producer/controllers/OrderController.php 查看文件

@@ -587,7 +587,8 @@ class OrderController extends ProducerBaseController
$producer = $this->getProducerCurrent();

if (!$order || (!$producer->option_allow_order_guest && !$orderManager->isOrderBelongsToUser($order, GlobalParam::getCurrentUser()))) {
throw new \yii\base\UserException('Commande introuvable.');
$this->setFlash('error', 'Commande introuvable');
return $this->redirect(['order/history']);
}

$orderManager->initOrder($order);

+ 1
- 1
producer/views/order/order.php 查看文件

@@ -576,7 +576,7 @@ $this->setTitle('Commander') ;
<script type="text/x-template" id="template-step-point-sale">
<li id="step-point-sale" :class="'col-md-3'+((step == 'point-sale') ? ' active ' : '')+(first ? ' first' : '')">
<button @click="changeStep('point-sale')" :class="'btn '+ (step == 'point-sale' ? 'btn-primary' : 'btn-default')" :disabled="producer && (producer.option_order_entry_point == 'date' && step == 'date')">
<span class="button-content"><span class="glyphicon glyphicon-map-marker"></span> <?= $producer->getPointSaleWording(); ?></span>
<span class="button-content"><span class="glyphicon glyphicon-map-marker"></span> <?= $producerManager->getPointSaleWording($producer); ?></span>
</button>
<div class="info-step" v-if="pointSaleActive">
{{ pointSaleActive.name }}

Loading…
取消
儲存