diff --git a/core/components/formit/model/formit/formitform.class.php b/core/components/formit/model/formit/formitform.class.php index d43916e3..deb2d397 100644 --- a/core/components/formit/model/formit/formitform.class.php +++ b/core/components/formit/model/formit/formitform.class.php @@ -105,7 +105,7 @@ public function validateStoreAttachment($config) $error = ''; $mediasourceId = $this->xpdo->getOption('formit.attachment.mediasource'); - $mediasource = $this->xpdo->getObject('modMediaSource', $mediasourceId); + $mediasource = $this->xpdo->getObject('sources.modMediaSource', $mediasourceId); if (!$mediasource) { $error = $this->xpdo->lexicon('formit.storeAttachment_mediasource_error') . $mediasourceId; } else {