Skip to content

Commit

Permalink
fixed date issue and description crash
Browse files Browse the repository at this point in the history
  • Loading branch information
aman-alfresco committed May 10, 2024
1 parent 51aafbb commit 2d9bfec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -48,9 +47,9 @@ class ProcessDetailViewModel(
entryListener?.onEntryCreated(it.entry)
}
}
viewModelScope.on<ActionUpdateNameDescription> {
setState { copy(parent = it.entry as ProcessEntry) }
}
// viewModelScope.on<ActionUpdateNameDescription> {
// setState { copy(parent = it.entry as ProcessEntry) }
// }

fetchUserProfile()
fetchAccountInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ data class TaskEntry(
processDefinitionId = data.processDefinitionId,
processInstanceStartUserId = data.processInstanceStartUserId,
memberOfCandidateGroup = data.memberOfCandidateGroup,
formattedDueDate = data.dueDate?.toLocalDate()?.toString(),
)
}

Expand Down

0 comments on commit 2d9bfec

Please sign in to comment.