Skip to content

Instantly share code, notes, and snippets.

@etobi
Created September 29, 2017 10:08
Show Gist options
  • Save etobi/71894b4f3d7e4d64882f475e2384e560 to your computer and use it in GitHub Desktop.
Save etobi/71894b4f3d7e4d64882f475e2384e560 to your computer and use it in GitHub Desktop.
diff --git i/Classes/Domain/Repository/DceRepository.php w/Classes/Domain/Repository/DceRepository.php
index dafb5dd..fa07347 100644
--- i/Classes/Domain/Repository/DceRepository.php
+++ w/Classes/Domain/Repository/DceRepository.php
@@ -166,9 +166,10 @@ class DceRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
*/
protected function processFillingFields(
\ArminVieweg\Dce\Domain\Model\Dce $dce,
- array $fieldList,
+ array $fieldList = null,
array $contentObject
) {
+ $fieldList = $fieldList ?: [];
foreach ($fieldList as $fieldVariable => $fieldValue) {
$dceField = $dce->getFieldByVariable($fieldVariable);
if ($dceField) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment