Skip to content

[Bug] getTemplateVars, getTemplateVar возвращает value в поле id и tmplvarid #538

@sashabeep

Description

@sashabeep

Summary

$val = $modx->getTemplateVars('*', '*', $documentObject['id'],1,'category');
dump($val);
Image Image

EvoCMS version

Evolution CE 3.1.30

PHP version

8.1

Observed behavior

При непустом значении tv поля id и tmplvarid заполняются из поля value

Expected behavior

id и tmplvarid должны оставаться всегда равными id параметра

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnot confirmedThis issue is not confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions