Skip to content

Commit

Permalink
[SourceField] Fix undefindex source field option position
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreGauthier committed Jan 9, 2025
1 parent e5922f0 commit 51f618c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Metadata/State/SourceFieldOptionProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ private function insertOptions()
'source_field_id' => (int) $optionData['source_field_id'],
'code' => $expBuilder->literal($optionData['code']),
'default_label' => $expBuilder->literal($optionData['defaultLabel']),
'position' => $optionData['position'] ? (int) $optionData['position'] : 'NULL',
'position' => isset($optionData['position']) ? (int) $optionData['position'] : 'NULL',
];
} else {
// Create new
Expand Down

0 comments on commit 51f618c

Please sign in to comment.