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:
parent
604f0d060d
commit
07a852ed8a
|
|
@ -36,7 +36,7 @@
|
|||
|
||||
<input type="hidden" name="template[<?= e($item->fileName) ?>]" value="0" />
|
||||
<div class="checkbox custom-checkbox nolabel">
|
||||
<?php $cbId = 'cb'.md5($item->fileName) ?>
|
||||
<?php $cbId = 'cb' . md5($this->itemType . '/' . $item->fileName) ?>
|
||||
<input
|
||||
id="<?= $cbId ?>"
|
||||
type="checkbox"
|
||||
|
|
|
|||
Loading…
Reference in New Issue