Skip to content

Commit

Permalink
fix(form): image upload handling in header field
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Dec 1, 2022
1 parent 28f4dd6 commit 5dc66a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions inc/form.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 5dc66a5

Please sign in to comment.