Fix missed data on RichText post process event (#5618)

This commit is contained in:
Yuriy Bakhtin 2022-03-30 15:45:43 +03:00 committed by GitHub
parent 1ac9efd09d
commit cf0bdc9666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,7 @@ abstract class AbstractRichText extends JsWidget
$record->updateAttributes([$attribute => $text]);
}
$evt = new Event(['result' => ['text' => $text, 'record' => $record, 'attribute' => $attribute]]);
$evt = new Event(['result' => array_merge($result, ['text' => $text, 'record' => $record, 'attribute' => $attribute])]);
Event::trigger(static::class, static::EVENT_POST_PROCESS, $evt);
return $evt->result;