Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[STTNHUB-356] fix: Unable to send empty value for UserForm #1045

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

MarkLark86
Copy link
Contributor

Was causing the following exception to be raised

  File "newsroom/users/forms.py", line 22, in process_formdata
    self.data = [x.strip() for x in valuelist[0].split(",")]
AttributeError: 'NoneType' object has no attribute 'split'

Checklist

  • This pull request is not adding new forms that use redux
  • This pull request is adding missing TypeScript types to modified code segments where it's easy to do so with confidence
  • This pull request is replacing lodash.get with optional chaining for modified code segments

Was causing the following exception to be raised
```
  File "newsroom/users/forms.py", line 22, in process_formdata
    self.data = [x.strip() for x in valuelist[0].split(",")]
AttributeError: 'NoneType' object has no attribute 'split'
```
@MarkLark86 MarkLark86 added this to the v2.8 milestone Aug 21, 2024
@MarkLark86 MarkLark86 requested a review from petrjasek August 21, 2024 00:20
@MarkLark86 MarkLark86 merged commit ef4d13a into superdesk:develop Aug 21, 2024
7 checks passed
petrjasek pushed a commit that referenced this pull request Aug 22, 2024
* [STTNHUB-356] fix: Unable to send empty value for UserForm
Was causing the following exception to be raised
```
  File "newsroom/users/forms.py", line 22, in process_formdata
    self.data = [x.strip() for x in valuelist[0].split(",")]
AttributeError: 'NoneType' object has no attribute 'split'
```

* fix formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants