1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-25 15:51:37 +02:00

Fix issue processwire/processwire-issues#650 cropped images in image fields with overwrite option enabled not showing

This commit is contained in:
Ryan Cramer
2018-08-06 10:33:17 -04:00
parent 6882abe40a
commit a1676b0adb

View File

@@ -1211,7 +1211,7 @@ class ProcessPageEditImageSelect extends Process implements ConfigurableModule {
}
$pageimages->add($pathname);
$pageimage = $pageimages->last();
$pageimage->isTemp(true);
if(!$this->field->get('overwrite')) $pageimage->isTemp(true);
$this->page->save($this->field->name);
$fileID = "file_$pageimage->hash";
$isNew = 1;