Skip to content

Commit

Permalink
MID-2878
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed May 25, 2016
1 parent a8d0da1 commit e80887a
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -137,8 +137,12 @@ private Event createRequest(PrismObject<? extends ObjectType> object, Task task,

ModelEvent event = new ModelEvent(lightweightIdentifierGenerator);
event.setModelContext(modelContext);
// TODO or take channel from modelContext?
event.setChannel(task.getChannel());
// TODO is this correct? it's not quite clear how we work with channel info in task / modelContext
String channel = task.getChannel();
if (channel == null) {
channel = modelContext.getChannel();
}
event.setChannel(channel);

if (task.getOwner() != null) {
event.setRequester(new SimpleObjectRefImpl(notificationsUtil, task.getOwner().asObjectable()));
Expand Down

0 comments on commit e80887a

Please sign in to comment.