Removing cloned date defaults. (#636)

This commit is contained in:
kevgliss 2016-12-27 11:35:53 -08:00 committed by GitHub
parent de7cec35c6
commit b0232b804e
1 changed files with 2 additions and 2 deletions

View File

@ -214,8 +214,8 @@ angular.module('lemur')
CertificateApi.get(editId).then(function (certificate) {
$scope.certificate = certificate;
$scope.certificate.name = ''; // we should prefer the generated name
$scope.certificate.validityStart = Date.parse($scope.certificate.validityStart); // we should rely the defaults
$scope.certificate.validityEnd = Date.parse($scope.certificate.validityEnd); // we should rely on the defaults
$scope.certificate.validityStart = null;
$scope.certificate.validityEnd = null;
CertificateService.getDefaults($scope.certificate);
});