Skip to content

FLAG-19 : Exception when Saving Flag Without Message #22

Open
RishavR wants to merge 1 commit intoopenmrs:masterfrom
RishavR:flag-19
Open

FLAG-19 : Exception when Saving Flag Without Message #22
RishavR wants to merge 1 commit intoopenmrs:masterfrom
RishavR:flag-19

Conversation

@RishavR
Copy link

@RishavR RishavR commented Apr 1, 2019

Description of what I changed

Made changes to the following methods in omod to ensure that if user does not enter a message in 'Edit Flags', it displays an error message instead of leading to the exception page:

  1. Class - FlagValidator
    Method - validate()
  2. Class - PriorityValidator
    Method - validate()

Also made changes to the following properties files in API to include Error Message when message field is empty:

  1. messages.properties
  2. messages_fr.properties

Issues I worked on

https://issues.openmrs.org/browse/FLAG-19

Screenshot

Success Screenshot

Copy link
Member

@Ruhanga Ruhanga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RishavR , lets make this PR more nice by squashing the commits you have made.

Changes made to display error message to the user if the 'Message' field is empty.
Changes done for both En and Fr languages.
@RishavR
Copy link
Author

RishavR commented Apr 15, 2019

@RishavR , lets make this PR more nice by squashing the commits you have made.

@Ruhanga Done.

patientflags.errors.priorityNameTooLong=Name can only be 255 characters in length
patientflags.errors.styleTooLong=Style can only be 255 characters in length
patientflags.errors.invalidUsername=No user with that username No newline at end of file
patientflags.errors.invalidUsername=No user with that username
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has the above line got anything to do with this ticket?

@sherrif10
Copy link
Member

Hello @RishavR ,Are you still interested in finishing this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants