Michael Posted July 11, 2020 Report Posted July 11, 2020 To fix this bug please go to: /plugins/order/views/default/orders_view.pdt Line 48: <a href="<?php echo $this->Html->safe($this->base_uri . 'client/invoices/view/' . $invoice->id . '/');?>" class="btn btn-xs btn-default"> Replace with: <a href="<?php echo $this->Html->safe($this->client_uri . 'invoices/view/' . $invoice->id . '/');?>" class="btn btn-xs btn-default"> Line 106: <a href="<?php echo $this->Html->safe($this->base_uri . 'client/services/manage/' . $service->id . '/');?>" class="btn btn-xs btn-default"> Replace with: <a href="<?php echo $this->Html->safe($this->client_uri . 'services/manage/' . $service->id . '/');?>" class="btn btn-xs btn-default"> To fix these bugs please go to: /plugins/order/views/default/orders.pdt Line: 68: <a href="<?php echo $this->Html->safe($this->base_uri . 'order/orders/view/' . $order->id . '/');?>" class="btn btn-xs btn-default"> With: <a href="<?php echo $this->Html->safe($this->base_uri . 'plugin/order/orders/view/' . $order->id . '/');?>" class="btn btn-xs btn-default"> Line 74: <a href="<?php echo $this->Html->safe($this->base_uri . 'order/orders/cancel/' . $order->id . '/');?>" class="btn btn-xs btn-danger"> with: <a href="<?php echo $this->Html->safe($this->base_uri . 'plugin/order/orders/cancel/' . $order->id . '/');?>" class="btn btn-xs btn-danger"> Line 192: <a href="<?php echo $this->Html->safe($this->base_uri . 'order/orders/');?>" class="btn btn-default pull-right"> Replace with: <a href="<?php echo $this->Html->safe($this->base_uri . 'plugin/order/orders/');?>" class="btn btn-default pull-right"> Go to: /plugins/order/controllers/orders.php Replace line 141-167 with: public function cancel() { // Get order or redirect if not given if (!($order = $this->OrderOrders->get($this->get[0])) && ($order->client_id !== $this->client->id)) { $this->redirect($this->base_uri . 'plugin/order/orders/'); } // Cancel the order $this->OrderOrders->cancel($order->id); if (($errors = $this->OrderOrders->errors())) { $this->flashMessage( 'error', $errors, null, false ); } else { $this->flashMessage( 'message', Language::_('Orders.!success.order_canceled', true), null, false ); } $this->redirect($this->base_uri . 'plugin/order/orders/'); } Quote
Jono Posted July 13, 2020 Report Posted July 13, 2020 I get the client_uri changes, but is there some reason behind changing the others from order/ to plugin/order/? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.