1
0
mirror of synced 2025-02-16 15:03:14 +03:00

fix orderType escape issue

This commit is contained in:
Grisha Pomadchin 2014-07-09 12:51:08 +04:00
parent e5f7b0e1d6
commit 120aa7c713

View File

@ -563,7 +563,7 @@ class ICrmOrderActions
// new order
$newOrderFields = array(
'LID' => $defaultSiteId,
'PERSON_TYPE_ID' => $optionsOrderTypes[$order['orderType']],
'PERSON_TYPE_ID' => ($optionsOrderTypes[$order['orderType']]) ? $optionsOrderTypes[$order['orderType']] : 1,
'PAYED' => 'N',
'CANCELED' => 'N',
'STATUS_ID' => 'N',