fixing #2951
This commit is contained in:
parent
9a1e45682c
commit
a5398a491c
@ -1006,7 +1006,10 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
return Projector.lastModified();
|
return Projector.lastModified();
|
||||||
}, function () {
|
}, function () {
|
||||||
$scope.projectors = Projector.getAll();
|
$scope.projectors = Projector.getAll();
|
||||||
$scope.defaultProjectorId = ProjectionDefault.filter({name: 'motions'})[0].projector_id;
|
var defaultProjectiondefault = ProjectionDefault.filter({name: 'motions'})[0];
|
||||||
|
if (defaultProjectiondefault) {
|
||||||
|
$scope.defaultProjectorId = defaultProjector.projector_id;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
$scope.$watch(function () {
|
$scope.$watch(function () {
|
||||||
return Motion.lastModified(motionId);
|
return Motion.lastModified(motionId);
|
||||||
@ -1447,7 +1450,7 @@ angular.module('OpenSlidesApp.motions.site', [
|
|||||||
$scope.formFields[i].hide = false;
|
$scope.formFields[i].hide = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($scope.formFields[i].key == "showAsAgendaItem") {
|
if ($scope.formFields[i].key == "showAsAgendaItem" && motion.agenda_item) {
|
||||||
// get state from agenda item (hidden/internal or agenda item)
|
// get state from agenda item (hidden/internal or agenda item)
|
||||||
$scope.formFields[i].defaultValue = !motion.agenda_item.is_hidden;
|
$scope.formFields[i].defaultValue = !motion.agenda_item.is_hidden;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user