revolution icon indicating copy to clipboard operation
revolution copied to clipboard

Returned values from plugins resets before each new plugin

Open mvoevodskiy opened this issue 5 years ago • 2 comments

Bug report

Summary

$modx->event->returnedValues resets at each new plugin. Values don't returned from plugin if next plugin will run.

Step to reproduce

Create 2 plugins at one event, assign some value to $modx->event->returnedValues at first plugin.

Observed behavior

Try to get this values in a code generated event.

Expected behavior

Values must be accessible after all plugins if plugin don't reset it.

Environment

MODX 2+

mvoevodskiy avatar Apr 09 '20 08:04 mvoevodskiy

I have a problem with it too

EMDM45 avatar Nov 22 '21 05:11 EMDM45

When will you fix it? It is necessary to comment out line 2875 in core\model\modx\modx.class.php '$this->returnedValues = null; in function resetEventObject(){

touol avatar Apr 20 '23 13:04 touol