From 5dc66a5ef70ac120b42d70ee2905845e1ba7378a Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 1 Dec 2022 10:16:28 +0100 Subject: [PATCH] fix(form): image upload handling in header field --- inc/form.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/inc/form.class.php b/inc/form.class.php index f50538609..8089daef3 100644 --- a/inc/form.class.php +++ b/inc/form.class.php @@ -1126,6 +1126,15 @@ public function post_addItem() { * @return void */ public function post_updateItem($history = 1) { + $this->input = $this->addFiles( + $this->input, + [ + 'force_update' => true, + 'content_field' => 'content', + 'name' => 'content', + ] + ); + $this->updateValidators(); $this->updateConditions($this->input);