Skip to content

Commit

Permalink
refactor: Fix columnKey comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Feb 5, 2024
1 parent be2040c commit 5daa225
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ protected function updateBlockTypeContent(string $fieldType, string $value, Cant
*/
protected function updateContent(string $value, CantoFieldData $cantoFieldData, ?string $columnKey, array $cantoDamAssetFields, string $table): void
{
$columnKey = self::CONTENT_COLUMN_KEY_MAPPINGS[$columnKey] ?? null;
$contentColumnKey = self::CONTENT_COLUMN_KEY_MAPPINGS[$columnKey] ?? null;
foreach ($cantoDamAssetFields as $cantoDamAssetField) {
// Find any $queryColumn content column row that match $value, and update them with the data from $cantoFieldData
$queryColumn = ElementHelper::fieldColumnFromField($cantoDamAssetField, $columnKey);
$queryColumn = ElementHelper::fieldColumnFromField($cantoDamAssetField, $contentColumnKey);
if ($queryColumn) {
$columns = $this->getColumns($cantoDamAssetField, $cantoFieldData);
try {
Expand Down

0 comments on commit 5daa225

Please sign in to comment.