mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fix RichText post process event pass data (#5615)
Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
parent
33f263a830
commit
d0a35246f3
@ -2,6 +2,7 @@
|
||||
--------------------------
|
||||
- Fix #5603: Syntax error in database view installer
|
||||
- Fix #5608: Remove duplicated field "Hostname" on install
|
||||
- Fix #5612: Fix RichText post process event pass data
|
||||
- Enh #5610: Show menu item "Add Licence Key" for purchased modules
|
||||
- Enh #5599: Introduce a variables in the Space model to call ProfileImage and ProfileBannerImage classes
|
||||
|
||||
|
@ -238,13 +238,10 @@ abstract class AbstractRichText extends JsWidget
|
||||
$record->updateAttributes([$attribute => $text]);
|
||||
}
|
||||
|
||||
$evt = new Event(['result' => ['text' => $text, 'record' => $record, 'attribute' => $attribute]]);
|
||||
Event::trigger(static::class, static::EVENT_POST_PROCESS, $evt);
|
||||
|
||||
Event::trigger(static::class, static::EVENT_POST_PROCESS,
|
||||
new Event(['data' => ['text' => $text, 'record' => $record, 'attribute' => $attribute]]));
|
||||
|
||||
$result['text'] = $text;
|
||||
|
||||
return $result;
|
||||
return $evt->result;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user