Skip to content

Commit

Permalink
Fix options actions in ProjectViewSet
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Dec 23, 2023
1 parent d4e0059 commit 38b4e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## [RDMO 2.1.2](https://github.com/rdmorganiser/rdmo/compare/2.1.1...2.1.2)

* Fix a bug with webpack font paths
* Fix a bug with option set provider plugins

## [RDMO 2.1.1](https://github.com/rdmorganiser/rdmo/compare/2.1.0...2.1.1) (Dec 21, 2023)

Expand Down
2 changes: 1 addition & 1 deletion rdmo/projects/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def options(self, request, pk=None):
if Question.objects.filter_by_catalog(project.catalog).filter(optionsets=optionset) and \
optionset.provider is not None:
options = [
dict(**option, text_and_help=option.get('text_and_help', 'text'))
dict(**option, text_and_help=option.get('text_and_help', option.get('text', '')))
for option in optionset.provider.get_options(project, search=request.GET.get('search'))
]
return Response(options)
Expand Down

0 comments on commit 38b4e86

Please sign in to comment.