mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 17:54:44 +02:00
Add partial fix for processwire/processwire-issues#1586
Co-authored-by: pine3ree <pine3ree@gmail.com>
This commit is contained in:
@@ -665,6 +665,13 @@ class InputfieldImage extends InputfieldFile implements InputfieldItemList, Inpu
|
|||||||
$basename = $pagefile->basename(false);
|
$basename = $pagefile->basename(false);
|
||||||
$focus = $pagefile->focus();
|
$focus = $pagefile->focus();
|
||||||
|
|
||||||
|
if($pagefile !== $metaPagefile) {
|
||||||
|
// copy custom fields data from previous file
|
||||||
|
foreach($metaPagefile->filedata() as $key => $value) {
|
||||||
|
$pagefile->filedata($key, $value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$inputfields = $this->getItemInputfields($pagefile);
|
$inputfields = $this->getItemInputfields($pagefile);
|
||||||
if($inputfields) $additional .= $inputfields->render();
|
if($inputfields) $additional .= $inputfields->render();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user