diff --git a/plugins/fabrik_element/fileupload/fileupload.php b/plugins/fabrik_element/fileupload/fileupload.php index ce60be4d1d2..39194069ed3 100644 --- a/plugins/fabrik_element/fileupload/fileupload.php +++ b/plugins/fabrik_element/fileupload/fileupload.php @@ -3406,12 +3406,19 @@ protected function downloadLog($row, $filePath) */ public function onSaveAsCopy($val) { - if (empty($val)) + if ($this->defaultOnCopy()) { - $formModel = $this->getFormModel(); - $origData = $formModel->getOrigData(); - $name = $this->getFullName(true, false); - $val = $origData[$name]; + $val = ''; + } + else + { + if (empty($val)) + { + $formModel = $this->getFormModel(); + $origData = $formModel->getOrigData(); + $name = $this->getFullName(true, false); + $val = $origData[$name]; + } } return $val;