Merge pull request #3617 from emanuelschuetze/issue3614
Improved motion import/export (Fix #3614).
This commit is contained in:
commit
a30a30d72f
@ -76,8 +76,12 @@ angular.module('OpenSlidesApp.motions.csv', [])
|
|||||||
|
|
||||||
// Submitters
|
// Submitters
|
||||||
if (params.include.submitters) {
|
if (params.include.submitters) {
|
||||||
var submitters = motion.submitters[0] ? motion.submitters[0].get_full_name() : '';
|
var submitters = [];
|
||||||
row.push('"' + submitters + '"');
|
angular.forEach(motion.submitters, function(user) {
|
||||||
|
var user_short_name = [user.title, user.first_name, user.last_name].join(' ').trim();
|
||||||
|
submitters.push(user_short_name);
|
||||||
|
});
|
||||||
|
row.push('"' + submitters.join('; ') + '"');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Category
|
// Category
|
||||||
|
@ -2119,7 +2119,8 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
// submitter
|
// submitter
|
||||||
if (motion.submitter && motion.submitter !== '') {
|
if (motion.submitter && motion.submitter !== '') {
|
||||||
angular.forEach(User.getAll(), function (user) {
|
angular.forEach(User.getAll(), function (user) {
|
||||||
if (user.short_name == motion.submitter.trim()) {
|
var user_short_name = [user.title, user.first_name, user.last_name].join(' ').trim();
|
||||||
|
if (user_short_name == motion.submitter.trim()) {
|
||||||
motion.submitters_id = [user.id];
|
motion.submitters_id = [user.id];
|
||||||
motion.submitter = user.full_name;
|
motion.submitter = user.full_name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user