From 0899bc5e22c6429f798913bdbfe0ff3652bae03e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Thu, 1 Mar 2018 10:22:16 +0100 Subject: [PATCH] Adapt motion csv import example file (Fix #3613). --- openslides/motions/static/js/motions/csv.js | 22 +++------------------ 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/openslides/motions/static/js/motions/csv.js b/openslides/motions/static/js/motions/csv.js index 68c2414ca..beefa88b0 100644 --- a/openslides/motions/static/js/motions/csv.js +++ b/openslides/motions/static/js/motions/csv.js @@ -28,12 +28,6 @@ angular.module('OpenSlidesApp.motions.csv', []) if (params.include.motionBlock) { headerline.push('Motion block'); } - if (params.include.state) { - headerline.push('State'); - } - if (params.include.recommendation) { - headerline.push('Recommendation'); - } return _.map(headerline, function (entry) { return gettextCatalog.getString(entry); }); @@ -101,16 +95,6 @@ angular.module('OpenSlidesApp.motions.csv', []) row.push('"' + blockTitle + '"'); } - // State - if (params.include.state) { - row.push('"' + motion.getStateName() + '"'); - } - - // Recommendation - if (params.include.recommendation) { - row.push('"' + motion.getRecommendationName() + '"'); - } - csvRows.push(row); }); CsvDownload(csvRows, 'motions-export.csv'); @@ -126,9 +110,9 @@ angular.module('OpenSlidesApp.motions.csv', []) recommendation: true, }}), // example entries - ['A1', 'Title 1', 'Text 1', 'Reason 1', 'Submitter A', 'Category A', 'Last Year Conference A', 'Block A', 'permitted', ''], - ['B1', 'Title 2', 'Text 2', 'Reason 2', 'Submitter B', 'Category B', '', 'Block A', 'accepted', 'Acceptance'], - ['' , 'Title 3', 'Text 3', '', '', '', '', '', '', ''], + ['A1', 'Title 1', 'Text 1', 'Reason 1', 'Submitter A', 'Category A', 'Last Year Conference A', 'Block A'], + ['B1', 'Title 2', 'Text 2', 'Reason 2', 'Submitter B', 'Category B', '', 'Block A'], + ['' , 'Title 3', 'Text 3', '', '', '', '', ''], ]; CsvDownload(csvRows, 'motions-example.csv'); },