From 0e17e6c5412ba5fd61519f493118e4c4b69b9b56 Mon Sep 17 00:00:00 2001 From: Ilyas Salikhov Date: Tue, 4 Mar 2014 20:45:17 +0400 Subject: [PATCH] Add orderMethod methods --- lib/IntaroCrm/RestApi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IntaroCrm/RestApi.php b/lib/IntaroCrm/RestApi.php index 49f3046..0ad8d22 100644 --- a/lib/IntaroCrm/RestApi.php +++ b/lib/IntaroCrm/RestApi.php @@ -393,7 +393,7 @@ class RestApi $dataJson = json_encode($orderMethod); $this->parameters['orderMethod'] = $dataJson; - $url = $this->apiUrl.'reference/order-methods/'.$orderType['code'].'/edit'; + $url = $this->apiUrl.'reference/order-methods/'.$orderMethod['code'].'/edit'; $result = $this->curlRequest($url, 'POST'); return $result; }