Commit 0f1596cc authored by Daniel Haag's avatar Daniel Haag

openolat#165: do not create a new (disabled) subscriber entry in the migration...

openolat#165: do not create a new (disabled) subscriber entry in the migration to 14.2 when one already exists
parent aa0f3e46
......@@ -169,7 +169,7 @@ public class OLATUpgrade_14_2_0 extends OLATUpgrade {
List<Publisher> publishers = getPublisher(infoSubscription);
for(Publisher publisher:publishers) {
Subscriber subscriber = notificationsManager.getSubscriber(identity, publisher);
if(subscriber == null || !subscriber.isEnabled()) {
if(subscriber == null) {
SubscriberImpl sub = new SubscriberImpl(publisher, identity);
sub.setEnabled(false);
sub.setCreationDate(new Date());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment