1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 18:24:57 +02:00

Fix issue where InputfieldImage could potentially detect ajax request mode when not applicable

This commit is contained in:
Ryan Cramer
2018-06-28 12:39:43 -04:00
parent 67bbd9641d
commit bd325ba123

View File

@@ -1310,7 +1310,7 @@ class InputfieldImage extends InputfieldFile implements InputfieldItemList, Inpu
$this->message($this->_('Recreated all legacy thumbnails') . " - $this->name");
}
if(!$this->isAjax) {
if(!$this->isAjax && !$this->wire('config')->ajax) {
// process actions, but only on non-ajax save requests
foreach($this->value as $k => $pagefile) {
$id = $this->pagefileId($pagefile);