Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Fix for "Disallow Empty Bug Reports" Issue #2615 #2676

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix for "Disallow Empty Bug Reports" Issue #2615
Reverted to original code for function titleFieldEditingChanged. Removed textViewDelegate and updateSubmitButtonState function which watched both titleField and bodyField for content before enabling the Submit button. 

Split onSend function in two separate functions, onSend and finishSend. onSend now looks for content in bodyField and if none is found instantiates an IAAlertController to notify the user that they are missing a description and giving them the option to send it anyway or return to the form and add one. finishSend completes the send.
wayni208 committed Mar 11, 2019
commit a43a06f4080c9a104a303a51d5631ed957406e92
2 changes: 1 addition & 1 deletion Classes/New Issue/NewIssueTableViewController.swift
Original file line number Diff line number Diff line change
@@ -150,7 +150,7 @@ final class NewIssueTableViewController: UITableViewController, UITextFieldDeleg
}))

submitAlert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: { (action: UIAlertAction!) in
self.viewDidLoad()
submitAlert .dismiss(animated: true, completion: nil)
}))

present(submitAlert, animated: true, completion: nil)