1
0
mirror of synced 2024-11-21 21:06:09 +03:00

ref #92774 Исправлено отображение настройки пользовательских полей (#329)

This commit is contained in:
Kocmonavtik 2023-12-21 15:09:31 +03:00 committed by GitHub
parent 6d479ae441
commit 3d3326018a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 15 deletions

View File

@ -1,3 +1,6 @@
## 2023-12-21 v.6.5.1
- Исправлено отображение настройки пользовательских полей
## 2023-12-18 v.6.5.0 ## 2023-12-18 v.6.5.0
- Добавлена поддержка функционала пользовательских полей - Добавлена поддержка функционала пользовательских полей

View File

@ -1 +1 @@
- Добавлена поддержка функционала пользовательских полей - Исправлено отображение настройки пользовательских полей

View File

@ -1,6 +1,6 @@
<?php <?php
$arModuleVersion = [ $arModuleVersion = [
'VERSION' => '6.5.0', 'VERSION' => '6.5.1',
'VERSION_DATE' => '2023-12-18 13:00:00' 'VERSION_DATE' => '2023-12-21 15:00:00'
]; ];

View File

@ -2434,14 +2434,11 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
name="bitrixOrderFields" name="bitrixOrderFields"
onchange="changeSelectBitrixValue(this, 'bitrixOrderFields_', 'crmOrderFields_');" onchange="changeSelectBitrixValue(this, 'bitrixOrderFields_', 'crmOrderFields_');"
> >
<option value=""></option> <option value="" selected></option>
<?php foreach ($arResult['bitrixOrdersCustomProp'] as $type => $mass) {?> <?php foreach ($arResult['bitrixOrdersCustomProp'] as $type => $mass) {?>
<optgroup label="<?php echo GetMessage($type); ?>"> <optgroup label="<?php echo GetMessage($type); ?>">
<?php foreach ($mass as $code => $prop) {?> <?php foreach ($mass as $code => $prop) {?>
<option <option value="<?php echo $code ?>">
value="<?php echo $code ?>"
<?php if ($bitrixProp === $code) echo 'selected'; ?>
>
<?php echo $prop ?> <?php echo $prop ?>
</option> </option>
<?php } ?> <?php } ?>
@ -2457,14 +2454,11 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
name="crmOrderFields" name="crmOrderFields"
onchange="changeSelectCrmValue(this, 'crmOrder_')" onchange="changeSelectCrmValue(this, 'crmOrder_')"
> >
<option value=""></option> <option value="" selected></option>
<?php foreach ($arResult['crmCustomOrderFields'] as $type => $mass) {?> <?php foreach ($arResult['crmCustomOrderFields'] as $type => $mass) {?>
<optgroup label="<?php echo GetMessage($type); ?>"> <optgroup label="<?php echo GetMessage($type); ?>">
<?php foreach ($mass as $crmProp) {?> <?php foreach ($mass as $crmProp) {?>
<option <option value="<?php echo $crmProp['code'] ?>">
value="<?php echo $crmProp['code'] ?>"
<?php if ($crmField === $crmProp['code']) echo 'selected'; ?>
>
<?php echo $crmProp['name'] ?> <?php echo $crmProp['name'] ?>
</option> </option>
<?php } ?> <?php } ?>
@ -2483,7 +2477,7 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
name="bitrixUserFields" name="bitrixUserFields"
onchange="changeSelectBitrixValue(this, 'bitrixUserFields_', 'crmUserFields_');" onchange="changeSelectBitrixValue(this, 'bitrixUserFields_', 'crmUserFields_');"
> >
<option value=""></option> <option value="" selected></option>
<?php foreach ($arResult['bitrixCustomUserFields'] as $type => $mass) {?> <?php foreach ($arResult['bitrixCustomUserFields'] as $type => $mass) {?>
<optgroup label="<?php echo GetMessage($type); ?>"> <optgroup label="<?php echo GetMessage($type); ?>">
<?php foreach ($mass as $code => $prop) {?> <?php foreach ($mass as $code => $prop) {?>
@ -2502,7 +2496,7 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
name="crmUserFields" name="crmUserFields"
onchange="changeSelectCrmValue(this, 'crmClient_')" onchange="changeSelectCrmValue(this, 'crmClient_')"
> >
<option value=""></option> <option value="" selected></option>
<?php foreach ($arResult['crmCustomUserFields'] as $type => $mass) {?> <?php foreach ($arResult['crmCustomUserFields'] as $type => $mass) {?>
<optgroup label="<?php echo GetMessage($type); ?>"> <optgroup label="<?php echo GetMessage($type); ?>">
<?php foreach ($mass as $crmProp) {?> <?php foreach ($mass as $crmProp) {?>