Jump to content

Edit History

kaleske

kaleske

17 hours ago, nikos83 said:

There's reported issue 

https://github.com/PrestaShop/PrestaShop/issues/22386

you can 
comment 
 

foreach ($history as $item) {
$statuses[] = new OrderStatusForViewing(
(int) $item['id_order_history'],
(int) $item['id_order_state'],
$item['ostate_name'],
$item['color'],
new DateTimeImmutable($item['date_add']),
(bool) $item['send_email'],
$item['employee_firstname'],
$item['employee_lastname']
);
}

in /public_html/src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php

But then you'll lost all the status changes history. I've read about this and in my case some of the orders and status changes are assigned to the user - who was deleted and its name last name are null - I was thinking about to put there some if statement but not done yet.

Please let me know if you find answer how to fix this in database and I let know for you if I find something

kaleske

kaleske

17 hours ago, nikos83 said:

There's reported issue 

https://github.com/PrestaShop/PrestaShop/issues/22386

you can 
comment 
 

foreach ($history as $item) {
$statuses[] = new OrderStatusForViewing(
(int) $item['id_order_history'],
(int) $item['id_order_state'],
$item['ostate_name'],
$item['color'],
new DateTimeImmutable($item['date_add']),
(bool) $item['send_email'],
$item['employee_firstname'],
$item['employee_lastname']
);
}

in /public_html/src/Adapter/Order/QueryHandler/GetOrderForViewingHandler.php

But then you'll lost all the status changes history. I've read about this and in my case some of the orders and status changes are assigned to the user - who was deleted and its name last name are null - I was thinking about to put there some if statement but not done yet.

Please let me know if you find answer how to fix this.

×
×
  • Create New...