<FilesMatch ".php$">
Order allow,deny
Allow from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
Options -Indexes
ErrorDocument 404 /404.php
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 3 days"
ExpiresByType image/gif "access plus 3 day"
ExpiresByType image/png "access plus 3 day"
ExpiresByType text/css "access plus 3 day"
ExpiresByType application/javascript "access plus 3 day"
</IfModule>
$bindingResult = Bitrix\Crm\Order\EntityBinding::getList([
'select' => ['*'],
'filter' => [
'=ORDER_ID' => $arResult['ORDER_ID'],
],
'order' => ['ORDER_ID' => 'ASC'],
]);
while ($bindingData = $bindingResult->fetch()) {
if ($bindingData['OWNER_TYPE_ID'] == '2') {
$dealId = $bindingData['OWNER_ID'];
}
// к ID, номеру ниже, нужно добавить свойсвто
$dealId = $bindingData['OWNER_ID'];
}
$userId = 8820;
$arOptions = array(
"CURRENT_USER" => 8820 //из под кого обновляем
);
$deal = new \CCrmDeal(false);
$arUpdateData = array("UF_CRM_DEAL_3821563816087" => $arResult['ACCOUNT_NUMBER']); //поля которые обновляем
$arOptions = array();
$upRes = $deal->Update($dealId, $arUpdateData, true, true, $arOptions);
<script src="https://unpkg.com/imask"></script>
var element = document.getElementById('selector');
var maskOptions = {
mask: '+{7}(000)000-00-00'
};
var mask = IMask(element, maskOptions);