Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Fixed

- Fix empty dropdown value (-1) on form submission
- Fix text area fields size and alignment
- Optimize container loading when there are a large number of entities

Expand Down
3 changes: 2 additions & 1 deletion inc/destinationfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ public function applyConfiguratedValueToInputUsingAnswers(
$input[sprintf('itemtype_%s', $field_name)] = $answer->getRawAnswer()['itemtype'];
$input[sprintf('items_id_%s', $field_name)] = $answer->getRawAnswer()['items_id'];
} elseif ($field->fields['type'] == 'dropdown') {
$input[$field_name] = $answer->getRawAnswer()['items_id'];
$raw_id = (int) $answer->getRawAnswer()['items_id'];
$input[$field_name] = ($raw_id > 0) ? $raw_id : null;
} else {
$input[$field_name] = $value ?? $answer->getRawAnswer();
}
Expand Down