diff --git a/browse/src/main/kotlin/com/alfresco/content/browse/processes/details/ProcessDetailViewModel.kt b/browse/src/main/kotlin/com/alfresco/content/browse/processes/details/ProcessDetailViewModel.kt index 4c942332..f4bee732 100644 --- a/browse/src/main/kotlin/com/alfresco/content/browse/processes/details/ProcessDetailViewModel.kt +++ b/browse/src/main/kotlin/com/alfresco/content/browse/processes/details/ProcessDetailViewModel.kt @@ -9,7 +9,6 @@ import com.airbnb.mvrx.Success import com.airbnb.mvrx.ViewModelContext import com.alfresco.content.actions.Action import com.alfresco.content.actions.ActionOpenWith -import com.alfresco.content.actions.ActionUpdateNameDescription import com.alfresco.content.common.EntryListener import com.alfresco.content.component.ComponentMetaData import com.alfresco.content.data.Entry @@ -48,9 +47,9 @@ class ProcessDetailViewModel( entryListener?.onEntryCreated(it.entry) } } - viewModelScope.on { - setState { copy(parent = it.entry as ProcessEntry) } - } +// viewModelScope.on { +// setState { copy(parent = it.entry as ProcessEntry) } +// } fetchUserProfile() fetchAccountInfo() diff --git a/component/src/main/java/com/alfresco/content/component/DatePickerBuilder.kt b/component/src/main/java/com/alfresco/content/component/DatePickerBuilder.kt index 8ef6be7d..9b855f96 100644 --- a/component/src/main/java/com/alfresco/content/component/DatePickerBuilder.kt +++ b/component/src/main/java/com/alfresco/content/component/DatePickerBuilder.kt @@ -100,7 +100,7 @@ data class DatePickerBuilder( if (fieldsData?.type == FieldType.DATETIME.value()) { stringDateTime = getFormatDate(date) timePicker.show(fragmentManager, DatePickerBuilder::class.java.name) - } else if (fieldsData?.type == FieldType.DATE.value()) { + } else { onSuccess?.invoke(getFormatDate(date)) } } diff --git a/data/src/main/kotlin/com/alfresco/content/data/TaskEntry.kt b/data/src/main/kotlin/com/alfresco/content/data/TaskEntry.kt index 85258a45..2031c535 100644 --- a/data/src/main/kotlin/com/alfresco/content/data/TaskEntry.kt +++ b/data/src/main/kotlin/com/alfresco/content/data/TaskEntry.kt @@ -60,6 +60,7 @@ data class TaskEntry( processDefinitionId = data.processDefinitionId, processInstanceStartUserId = data.processInstanceStartUserId, memberOfCandidateGroup = data.memberOfCandidateGroup, + formattedDueDate = data.dueDate?.toLocalDate()?.toString(), ) }