Skip to content

Commit

Permalink
fix(recurrentEvent): be careful when modifying ImageField
Browse files Browse the repository at this point in the history
  • Loading branch information
J9rem committed Oct 12, 2023
1 parent 35aeb90 commit 086b874
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/bazar/services/DateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,14 @@ function ($day) use ($currentStartDay){
}
$newEntry['bf_date_fin_evenement_data'] = "{\"recurrentParentId\":\"{$entry['id_fiche']}\"}";
$newEntry['antispam'] = 1;
$savedFiles = $_FILES;
$_FILES = [];
// to prevent ImageFile to badly update Image
$this->entryManager->create(
$entry['id_typeannonce'],
$newEntry
);
$_FILES = $savedFiles;
}
}
}
Expand Down

0 comments on commit 086b874

Please sign in to comment.