Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PrestaShop
PrestaShop
Commits
01ad543c
Unverified
Commit
01ad543c
authored
Apr 04, 2022
by
NicolasCador
Committed by
GitHub
Apr 04, 2022
Browse files
Update function getCustomerOrders to avoid error
parent
45fe33fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
classes/order/Order.php
View file @
01ad543c
...
...
@@ -978,9 +978,9 @@ class OrderCore extends ObjectModel
foreach
(
$res
as
$key
=>
$val
)
{
// In case order creation crashed midway some data might be absent
$orderState
=
!
empty
(
$val
[
'id_order_state'
])
?
$indexedOrderStates
[
$val
[
'id_order_state'
]]
:
null
;
$res
[
$key
][
'order_state'
]
=
$orderState
[
'name'
]
?
:
null
;
$res
[
$key
][
'invoice'
]
=
$orderState
[
'invoice'
]
?
:
null
;
$res
[
$key
][
'order_state_color'
]
=
$orderState
[
'color'
]
?
:
null
;
$res
[
$key
][
'order_state'
]
=
$orderState
[
'name'
]
?
?
null
;
$res
[
$key
][
'invoice'
]
=
$orderState
[
'invoice'
]
?
?
null
;
$res
[
$key
][
'order_state_color'
]
=
$orderState
[
'color'
]
?
?
null
;
}
return
$res
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment