Skip to content

Commit

Permalink
Merge pull request #5909 from grzesiek2010/COLLECT-5903
Browse files Browse the repository at this point in the history
Fixed marking converted projects as old GD projects
  • Loading branch information
seadowg authored Jan 17, 2024
2 parents 7c41ddd + 488cd48 commit f463746
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class GoogleDriveProjectsDeleter(
if (result == DeleteProjectResult.UnsentInstances || result == DeleteProjectResult.RunningBackgroundJobs) {
unprotectedSettings.save(ProjectKeys.KEY_PROTOCOL, ProjectKeys.PROTOCOL_SERVER)
unprotectedSettings.save(ProjectKeys.KEY_SERVER_URL, "https://example.com")
it.isOldGoogleDriveProject = true
projectsRepository.save(it.copy(isOldGoogleDriveProject = true))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion projects/src/main/java/org/odk/collect/projects/Project.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ sealed class Project {
override val name: String,
override val icon: String,
override val color: String,
var isOldGoogleDriveProject: Boolean = false
val isOldGoogleDriveProject: Boolean = false
) : Project() {

constructor(uuid: String, project: New) : this(
Expand Down

0 comments on commit f463746

Please sign in to comment.