Merge pull request #3814 from emanuelschuetze/fix3813

Fixed TypeError in Motion and Assignment Slides (Fixed#3813)
This commit is contained in:
Norman Jäckel 2018-08-23 15:48:15 +02:00 committed by GitHub
commit e012589ab0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View File

@ -324,10 +324,16 @@ angular.module('OpenSlidesApp.assignments', [])
.provider('AssignmentPollDecimalPlaces', [
function () {
this.$get = [function () {
this.$get = ['$q', function ($q) {
return {
getPlaces: function (poll, find) {
return 0;
if (find) {
return $q(function (resolve) {
resolve(0);
});
} else {
return 0;
}
},
};
}];

View File

@ -206,10 +206,16 @@ angular.module('OpenSlidesApp.motions', [
.provider('MotionPollDecimalPlaces', [
function () {
this.$get = [function () {
this.$get = ['$q', function ($q) {
return {
getPlaces: function (poll, find) {
return 0;
if (find) {
return $q(function (resolve) {
resolve(0);
});
} else {
return 0;
}
},
};
}];