Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "successMessage" parameter is not passed to the $modx->placeholders array in the FetchIt::HandleFormIt method #5

Open
konqueror7 opened this issue Oct 13, 2023 · 0 comments

Comments

@konqueror7
Copy link

konqueror7 commented Oct 13, 2023

The 'successMessage' parameter specified when declaring the snippet in the template is replaced with the default value from the extension lexicon.
This is reproduced in snippet versions 1.0.0 and 1.1.1.
The site has the following configuration:
MODX version: Revolution 2.8.4-pl
Database type: mysql
Database version: 5.7.21-20
PHP version 7.4.33

To fix this, I add an instruction after declaring the $plPrefix variable in the FetchIt::handleFormIt() method

$this->modx->setPlaceholder($plPrefix . 'successMessage',$scriptProperties['successMessage']);

Ru

Параметр 'successMessage', заданный при объявлении сниппета в шаблоне, заменяется дефолтным значением из лексикона расширения
Это воспроизводится в версиях сниппета 1.0.0 и 1.1.1.
Сайт имеет конфигурацию:
Версия MODX: Revolution 2.8.4-pl
Тип базы данных: mysql
Версия базы данных: 5.7.21-20
PHP версия 7.4.33

Для исправления добавляю инструкцию после объявления переменной $plPrefix в методе FetchIt::handleFormIt()

$this->modx->setPlaceholder($plPrefix . 'successMessage',$scriptProperties['successMessage']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant