forked from sakaiproject/sakai
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SAK-34030 Only have a single setter for RSF (sakaiproject#5428)
When binding parameters from a request to a bean RSF isn’t predictable in which setter will get used, this results in the binding failing 50% of the time. By renaming one of the methods we force RSF to use the one we want all the time.
- Loading branch information
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,7 +132,7 @@ public void setOtherRecipientsList() { | |
otherRecipients.add("[email protected]"); | ||
otherRecipients.add("[email protected]"); | ||
|
||
entry.setOtherRecipients(otherRecipients); | ||
entry.setOtherRecipientsList(otherRecipients); | ||
assertFalse(entry.getOtherRecipients().isEmpty()); | ||
assertEquals(3, entry.getOtherRecipients().size()); | ||
assertEquals("[email protected]", entry.getOtherRecipients().get(0)); | ||
|