Skip to content

Commit 4ef7b12

Browse files
authored
Merge pull request #31 from netgrif/NAE-1619
[NAE-1619] Task that has no fields cannot be completed
2 parents da4ba03 + c38fb1e commit 4ef7b12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

projects/netgrif-components-core/src/lib/task/services/task-data.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ export class TaskDataService extends TaskHandlingService implements OnDestroy {
172172
if (dataGroups.length === 0) {
173173
this._log.info('Task has no data ' + this._safeTask);
174174
this._safeTask.dataSize = 0;
175+
this._taskContentService.taskFieldsIndex[this._safeTask.stringId] = {} as TaskFields;
175176
} else {
176177
this._taskContentService.referencedTaskAndCaseIds[this._safeTask.caseId] = [this._safeTask.stringId];
177178
dataGroups.forEach(group => {

0 commit comments

Comments
 (0)