Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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

wants to merge 1 commit into from

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.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
4 participants