1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 13:16:45 +02:00

feat(core): updates for #586 #585 #584

This commit is contained in:
Awilum
2022-09-09 17:17:28 +03:00
parent 314b72e63d
commit 1d9f249363
2 changed files with 3 additions and 1 deletions

View File

@@ -34,6 +34,8 @@ emitter()->addListener('onEntriesFetchSingleField', static function (): void {
$field = entries()->registry()->get('methods.fetch.field');
$vars = [];
// Convert entry fields to vars.
foreach (json_decode(json_encode((object) entries()->registry()->get('methods.fetch.result')), false) as $key => $value) {
$vars[$key] = $value;

View File

@@ -41,6 +41,6 @@ parsers()->shortcodes()->addHandler('eval', static function (ShortcodeInterface
});
parsers()->shortcodes()->addHandler('compile', static function (ShortcodeInterface $s) {
return expression()->compile(parsers()->shortcodes()->parse($s->getContent()));
return parsers()->expressions()->compile(parsers()->shortcodes()->parse($s->getContent()));
});