Fixed TypeError in Motion and Assignment Slides (Fixed#3813)

in MotionPollDecimalPlaces and AssignmentPollDecimalPlaces
This commit is contained in:
Emanuel Schütze 2018-08-23 15:39:15 +02:00
parent 172f1ed890
commit 0036567f7d
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) {
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) {
if (find) {
return $q(function (resolve) {
resolve(0);
});
} else {
return 0;
}
},
};
}];