Skip to content

Commit

Permalink
[TASK] Implement v12 backportin in tx_interest_remote_id_mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mabolek committed Aug 28, 2023
1 parent 9132c8f commit 4c08680
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
9 changes: 1 addition & 8 deletions Classes/Utility/CompatibilityUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,6 @@ public static function backportVersion12TcaFeaturesForTable(array $tableTca)
}
}

foreach ($current as $key => $value) {
if (is_array($value)) {
$recurseFunction($value, $current, $recurseFunction);
} elseif ($key === 'required' && $value === true) {
$parent['eval'] .= ',required';
unset($parent['required']);
}
}
return $tableTca;
}
}
6 changes: 6 additions & 0 deletions Configuration/TCA/tx_interest_remote_id_mapping.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Pixelant\Interest\Utility\CompatibilityUtility;

$ll = 'LLL:EXT:interest/Resources/Private/Language/locallang_db.xlf:';

$tca = [
Expand Down Expand Up @@ -103,4 +105,8 @@
],
];

if (CompatibilityUtility::typo3VersionIsLessThan('12.0')) {
$tca = CompatibilityUtility::backportVersion12TcaFeaturesForTable($tca);
}

return $tca;

0 comments on commit 4c08680

Please sign in to comment.