Import only speakers in meetings

This commit is contained in:
Florian Vessaz 2016-05-20 11:19:53 +02:00
parent d71b8c5274
commit 2ea739cfdd

View File

@ -529,6 +529,18 @@
if (!ImporterUtils.isPersonEmpty(entry.speaker)) {
linkData.push(linkDataEntry(entry.speaker, authorType.none, true));
}
if (!this.timetable.eventInfo.isConference) {
// Only speakers are allowed in this type of event
var speakersLinkData = [];
$.each(linkData, function() {
if (this.isSpeaker) {
this.authorType = authorType.none;
speakersLinkData.push(this);
}
});
return speakersLinkData;
}
return linkData;
},