Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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 @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Fix default entity insertion for a user
- Fixed `SQL` error when creating new injection model
- Fixed issue with missing dropdown options

## [2.14.0] - 2024-10-10

Expand Down
7 changes: 7 additions & 0 deletions inc/commoninjectionlib.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2175,6 +2175,13 @@ public static function addToSearchOptions(
$type_searchOptions[$id]['injectable'] = self::FIELD_INJECTABLE;
}

//Some injection.class files are missing dropdown options. Set displaytype as dropdown if datatype is dropdown
//$tmp['displaytype'] is still empty. Set to prevent overwriting on next IF
if (isset($tmp['datatype']) && $tmp['datatype'] == 'dropdown') {
$type_searchOptions[$id]['displaytype'] = 'dropdown';
$tmp['displaytype'] = 'dropdown';
}

if (isset($tmp['linkfield']) && !isset($tmp['displaytype'])) {
$type_searchOptions[$id]['displaytype'] = 'text';
}
Expand Down
Loading