| | |
| | | return false; |
| | | } |
| | | |
| | | if ($scope.vm.form.issues == null || $scope.vm.form.issues.length === 0) { |
| | | /*if ($scope.vm.form.issues == null || $scope.vm.form.issues.length === 0) { |
| | | return false; |
| | | } |
| | | }*/ |
| | | |
| | | if ($scope.vm.form.file.length < 1) { |
| | | return true; |
| | |
| | | content : { |
| | | projectId : $scope.vm.form.projects[0].id, |
| | | issueTypeId : $scope.vm.form.issueTypeId, |
| | | parentIssueId : $scope.vm.form.issues[0].id |
| | | parentIssueId : (function () { |
| | | var id = -1; |
| | | if ($scope.vm.form.issues != null) { |
| | | id = $scope.vm.form.issues[0].id |
| | | } |
| | | return id; |
| | | })() |
| | | } |
| | | }, |
| | | fileFormDataName : "file" |