comment lines for sites support
This commit is contained in:
parent
f22f5d310c
commit
317b580d8a
@ -152,7 +152,7 @@ class intaro_intarocrm extends CModule {
|
||||
if (!CModule::IncludeModule("catalog")) {
|
||||
$arResult['errCode'] = 'ERR_CATALOG';
|
||||
}
|
||||
|
||||
|
||||
$arResult['arSites'] = array();
|
||||
$rsSites = CSite::GetList($by, $sort, array());
|
||||
while ($ar = $rsSites->Fetch())
|
||||
@ -435,9 +435,9 @@ class intaro_intarocrm extends CModule {
|
||||
|
||||
// empty == select all
|
||||
$orderSites = array();
|
||||
foreach ($_POST[$this->CRM_ORDER_SITES] as $site) {
|
||||
/* foreach ($_POST[$this->CRM_ORDER_SITES] as $site) {
|
||||
$orderSites[] = htmlspecialchars(trim($site));
|
||||
}
|
||||
} */
|
||||
|
||||
// form correct url
|
||||
$api_host = parse_url($api_host);
|
||||
|
@ -98,9 +98,9 @@ if (isset($_POST['Update']) && ($_POST['Update'] == 'Y')) {
|
||||
|
||||
// if empty so select all? or exception --not obligatory
|
||||
$orderSites = array();
|
||||
foreach ($_POST[$CRM_ORDER_SITES] as $site) {
|
||||
/*foreach ($_POST[$CRM_ORDER_SITES] as $site) {
|
||||
$orderSites[] = htmlspecialchars(trim($site));
|
||||
}
|
||||
}*/
|
||||
|
||||
if($api_host && $api_key) {
|
||||
$api = new IntaroCrm\RestApi($api_host, $api_key);
|
||||
|
Loading…
x
Reference in New Issue
Block a user