Adding a group fails when no data is entered

Description

Steps

  • Run the provided Behat test, or add a group without entering a name or role

Error message

The property "roles" in class "Integrated\Bundle\UserBundle\Model\Group" can be defined with the methods "addRole()", "removeRole()" but the new value must be an array or an instance of \Traversable, "NULL" given.

Behat test

(example to add to features/group.feature, validator message may be different)

Technical tasks

None

Deployment actions

None

Activity

Show:
Michael Jongman
May 11, 2017, 11:13 AM

Wanneer je een group aanmaakt zonder role krijg je die error.

1. Error oplossing
2. Behat test verrijken

Marijn Otte
June 2, 2017, 2:29 PM

The error is solved now, but choosing is a role should not be required

Michael Jongman
June 7, 2017, 7:41 AM

, lekker scherp. Had em zelf niet gezien.

Jeroen van Leeuwen
June 7, 2017, 8:30 AM

np, thanks for the changes!

Assignee

Unassigned

External issue ID

None

Client

Integrated Marijn

Min. hours

None

Dev hour estimate

None

Epic Link

Sprint

None

Fix versions

Configure