06/23 Fix inspection layout display and exported PDF file (sent via email)
This commit is contained in:
@@ -459,7 +459,7 @@ struct ExecuteInspectionView: View {
|
||||
let existingFormData = inspection.formData
|
||||
var data: [String: Any] = [:]
|
||||
for (k, v) in formValues {
|
||||
if let s = v as? String, s.hasPrefix("local://"),
|
||||
if v.hasPrefix("local://"),
|
||||
let saved = existingFormData[k] as? String, saved.hasPrefix("uploads/") {
|
||||
data[k] = saved
|
||||
} else {
|
||||
@@ -532,7 +532,7 @@ struct ExecuteInspectionView: View {
|
||||
let existingFormData = inspection.formData
|
||||
var data: [String: Any] = [:]
|
||||
for (k, v) in formValues {
|
||||
if let s = v as? String, s.hasPrefix("local://"),
|
||||
if v.hasPrefix("local://"),
|
||||
let saved = existingFormData[k] as? String, saved.hasPrefix("uploads/") {
|
||||
// processPhotoQueue already uploaded this photo — keep the server path
|
||||
data[k] = saved
|
||||
|
||||
Reference in New Issue
Block a user