1
0
Fork 0
mirror of synced 2025-04-18 16:41:02 +00:00

fix dot bug for shops-exoprt option

This commit is contained in:
Sergey Chazov 2022-02-04 16:48:19 +04:00
parent 4c94a90e93
commit 03e72ace3a

View file

@ -396,7 +396,7 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
return preg_match("/^shops-exoprt/", $var);
}
$bitrixShopsArr = str_replace('shops-exoprt-', '', array_filter(array_keys($_POST), 'maskInv'));
$bitrixShopsArr = array_values(array_filter($_POST, 'maskInv', ARRAY_FILTER_USE_KEY));
$arResult['bitrixIblocksExportList'] = RCrmActions::IblocksExportList();
foreach ($arResult['bitrixIblocksExportList'] as $bitrixIblocks) {
@ -2124,9 +2124,10 @@ if (isset($_POST['Update']) && ($_POST['Update'] === 'Y')) {
echo 'style="display: none;"';
} ?>>
<td colspan="2" class="option-other-center">
<label><input class="addr" type="checkbox" name="shops-exoprt-<? echo $sitesList['code']; ?>" value="Y" <?php if (in_array($sitesList['code'], $optionShops)) {
<label><input class="addr" type="checkbox" name="shops-exoprt-<?= $sitesList['code']; ?>" value="<?= $sitesList['code']?>" <?php if (in_array($sitesList['code'], $optionShops)) {
echo "checked";
} ?>> <?php echo $sitesList['name'] . ' (' . $sitesList['code'] . ')'; ?></label>
} ?>> <?php echo $sitesList['name'] . ' (' . $sitesList['code'] . ')'; ?>
</label>
</td>
</tr>
<?php endforeach; ?>