Merge branch 'DAPP_9_less_25' into 'procedures_refactoring'

DAPP-9: remove 25 letter validation

See merge request Cloud_Solution/doctor_app_flutter!995
merge-requests/994/head
ruaa ghali 4 years ago
commit 89d4a7aacb

@ -293,8 +293,7 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage>
model.medicationControllerError = ''; model.medicationControllerError = '';
model.illnessControllerError = ''; model.illnessControllerError = '';
if (complaintsController.text.isNotEmpty && if (complaintsController.text.isNotEmpty &&
illnessController.text.isNotEmpty && illnessController.text.isNotEmpty) {
complaintsController.text.length > 25) {
await model.postSubjectServices( await model.postSubjectServices(
patientInfo: widget.patientInfo, patientInfo: widget.patientInfo,
complaintsText: complaintsController.text, complaintsText: complaintsController.text,
@ -312,9 +311,6 @@ class _UpdateSubjectivePageState extends State<UpdateSubjectivePage>
if (complaintsController.text.isEmpty) { if (complaintsController.text.isEmpty) {
model.complaintsControllerError = model.complaintsControllerError =
TranslationBase.of(context).emptyMessage; TranslationBase.of(context).emptyMessage;
} else if (complaintsController.text.length < 25) {
model.complaintsControllerError =
TranslationBase.of(context).chiefComplaintLength;
} }
if (illnessController.text.isEmpty) { if (illnessController.text.isEmpty) {

Loading…
Cancel
Save