refs #5122 Order check fixes
gitea/hedera-web/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2023-02-23 16:50:49 +01:00
parent e5941266ed
commit 10d8128133
9 changed files with 44 additions and 13 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (23.6.2) stable; urgency=low
hedera-web (23.6.3) stable; urgency=low
* Initial Release.

View File

@ -1 +1,8 @@
Pending: Pendents
PendingOrders: Comandes pendents
NewOrder: Nova comanda
ViewOrder: Veure comanda
RemoveOrder: Eliminar comanda
LoadOrderIntoCart: Carregar comanda a la cistella
AreYouSureDeleteOrder: Segur que vols esborrar la comanda?
OrderLoadedIntoBasket: Comanda carregada a la cistella!

View File

@ -1 +1,8 @@
Pending: Pending
PendingOrders: Pending orders
NewOrder: New order
ViewOrder: View order
RemoveOrder: Delete order
LoadOrderIntoCart: Load order into cart
AreYouSureDeleteOrder: Are you sure you want to delete the order?
OrderLoadedIntoBasket: Order loaded into basket!

View File

@ -1 +1,8 @@
Pending: Pendents
Pending: En attente
PendingOrders: Commandes en attente
NewOrder: Nouvelle commande
ViewOrder: Afficher la commande
RemoveOrder: Supprimer la commande
LoadOrderIntoCart: Charger la commande dans le panier
AreYouSureDeleteOrder: Êtes-vous sûr de vouloir supprimer la commande?
OrderLoadedIntoBasket: Commande chargée dans le panier!

View File

@ -1 +1,8 @@
Pending: Pendientes
Pending: Pendentes
PendingOrders: Pedidos pendentes
NewOrder: Novo pedido
ViewOrder: Ver pedido
RemoveOrder: Excluir pedido
LoadOrderIntoCart: Carrega o pedido no carrinho
AreYouSureDeleteOrder: Tem certeza de que deseja excluir o pedido?
OrderLoadedIntoBasket: Pedido carregado na cesta!

View File

@ -32,9 +32,12 @@ module.exports = class {
continue: 'catalog'
};
if (err.code == 'orderNotOwnedByUser') {
switch(err.code) {
case 'orderConfirmed':
case 'orderNotOwnedByUser':
this.constructor.unload();
} else {
break;
default:
dst.id = this.orderId;
Htk.Toast.showError(err.message);
}

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "23.6.2",
"version": "23.6.3",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -48,13 +48,13 @@ class JsonService extends RestService {
$json = new JsonException();
if (_ENABLE_DEBUG || $errno & $eUser)
if (_ENABLE_DEBUG || $errno & $eUser) {
$json->message = $message;
else
$json->code = $errno;
} else
$json->message = s('Something went wrong');
if (_ENABLE_DEBUG) {
$json->code = $errno;
$json->file = $file;
$json->line = $line;
}