0001-api-fix-list-of-roles-in-formdata-API-8922.patch
tests/test_api.py | ||
---|---|---|
411 | 411 | |
412 | 412 |
Role.wipe() |
413 | 413 |
role = Role(name='test') |
414 |
role.id = '123' |
|
414 | 415 |
role.store() |
415 | 416 |
another_role = Role(name='another') |
417 |
another_role.id = '321' |
|
416 | 418 |
another_role.store() |
417 | 419 |
FormDef.wipe() |
418 | 420 |
formdef = FormDef() |
wcs/formdata.py | ||
---|---|---|
635 | 635 |
if self.workflow_roles: |
636 | 636 |
workflow_roles.update(self.workflow_roles) |
637 | 637 |
for workflow_role in workflow_roles: |
638 |
data['roles'][workflow_role] = workflow_roles.get(workflow_role)
|
|
638 |
data['roles'][workflow_role] = [workflow_roles.get(workflow_role)]
|
|
639 | 639 |
data['roles']['concerned'] = self.get_concerned_roles() |
640 | 640 |
data['roles']['actions'] = self.get_actions_roles() |
641 | 641 | |
642 |
- |