No validation for spacebar when create Patron notice template

Description

Overview: When user create new Patron notice template -> fill in 'Patron notice template name' and 'Body' mandatory fields with correct value and fill in 'Subject' with spaces -> click 'Save & Close' button ->  validation messages are shown  and all entered info is lost 

This validation messages are the same when user edit existing 'Patron notice template'

But info is not lost when user clicks 'Save&Close' button.

Precondition: 

Test env is opened

User have permissions to create Patron notice template 

Settings -> Circulation is opened
Steps to Reproduce:

1. Click on 'Patron notice template'

2. Click on '+New' button in the top right corner

3. Fill in 'Patron notice template name' and 'Body' mandatory fields with correct info(e.g. 'Testing template')

4. Fill in 'Subject' with _' '  space

5. Click 'Save & Close' button

Expected Results:

1. All existing 'Patron notice templates' are shown

2. New 'Patron notice template' window is opened

3. 'Testing template' is entered into 'Patron notice template name' and 'Body' mandatory fields

4.  _' '  space is entered into 'Subject'

5. Validation messages are shown (TBD)  and entered earlier info is not lost. 

Actual Results:

1. All existing 'Patron notice templates' are shown

2. New 'Patron notice template' window is opened

3. 'Testing template' is entered into 'Patron notice template name' and 'Body' mandatory fields

4.  _' '  space is entered into 'Subject'

5. Validation messages are shown (TBD)  and entered earlier info is lost. 

TBD: "Please fill this in to continue"
I.e. show existing validation message

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

julie.bickle June 1, 2022 at 12:06 PM

I confirm that this bug is fixed in Snapshot: I cannot save the template when the Subject just has spaces, and I get the same error message, as if the Subject field would be empty.

Artem Blazhko June 1, 2022 at 11:19 AM

, fix already available on snapshot env.
Also, you can check a short demo:

julie.bickle May 6, 2022 at 12:56 PM

 you are very right --> I have updated the description of this bug accordingly. 

Dmitriy Litvinenko May 6, 2022 at 12:03 PM

Hello Have i understood part of this bug was moved to https://folio-org.atlassian.net/browse/UICIRC-783 and we have in description TBD. 

Could you please confirm that i understood correctly that description for this bug should be updated?

CC: , ,

julie.bickle April 27, 2022 at 4:28 PM

Cheers, I'll get the FE part done soon.

Done

Details

Assignee

Reporter

Labels

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Morning Glory (R2 2022)

RCA Group

Incomplete/missing requirements

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created April 27, 2022 at 11:06 AM
Updated June 9, 2022 at 12:36 PM
Resolved June 1, 2022 at 12:06 PM
TestRail: Cases
TestRail: Runs