Skip to content

Instantly share code, notes, and snippets.

@etobi etobi/dce.patch
Created Sep 29, 2017

Embed
What would you like to do?
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
You can’t perform that action at this time.