Fix selection issue for similar-named CMS objects (#4433)

CMS objects with the same name as another object (eg. "test.htm" for a page and "test.htm" for a partial) were unable to be selected (selecting the partial selected the page).

Credit to @wenlong-date.
This commit is contained in:
Long Wen 2019-07-05 16:47:30 +08:00 committed by Ben Thomson
parent 604f0d060d
commit 07a852ed8a
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<input type="hidden" name="template[<?= e($item->fileName) ?>]" value="0" /> <input type="hidden" name="template[<?= e($item->fileName) ?>]" value="0" />
<div class="checkbox custom-checkbox nolabel"> <div class="checkbox custom-checkbox nolabel">
<?php $cbId = 'cb'.md5($item->fileName) ?> <?php $cbId = 'cb' . md5($this->itemType . '/' . $item->fileName) ?>
<input <input
id="<?= $cbId ?>" id="<?= $cbId ?>"
type="checkbox" type="checkbox"