05/27 Update functionalities
This commit is contained in:
@@ -279,6 +279,9 @@ struct FlagIssueView: View {
|
||||
severity: severity,
|
||||
description: description.trimmingCharacters(in: .whitespaces)
|
||||
)
|
||||
// Carry area context forward so the server can link the issue to the
|
||||
// correct area. areaServerId is nil when the inspection has no area.
|
||||
issue.areaServerId = inspection.areaServerId
|
||||
issue.photoLocalPaths = photos.map(\.path)
|
||||
issue.inspection = inspection
|
||||
inspection.localIssues.append(issue)
|
||||
|
||||
Reference in New Issue
Block a user