Removing cloned date defaults. (#636)
This commit is contained in:
parent
de7cec35c6
commit
b0232b804e
@ -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);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user