Skip to content

Commit 51b3492

Browse files
authored
Фикс результатов поиска сниппета/чанка при правом клике мыши в админке в редакторе CodeMirror
1 parent a4b3cb7 commit 51b3492

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

manager/media/style/default/ajax.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@
331331
$snippet = \EvolutionCMS\Models\SiteSnippet::query()->where('name', $name)->first();
332332

333333
if (!is_null($snippet)) {
334-
$row = $snippets->toArray();
334+
$row = $snippet->toArray();
335+
335336
$contextmenu = array(
336337
'header' => array(
337338
'innerHTML' => '<i class="' . $_style['icon_code'] . '"></i> ' . entities($row['name'], $modx->getConfig('modx_charset'))

0 commit comments

Comments
 (0)