mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-15 08:24:35 +00:00
Import only speakers in meetings
This commit is contained in:
parent
d71b8c5274
commit
2ea739cfdd
@ -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;
|
||||
},
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user