Go to file
Petro Vashchuk 0cd7a8cedb Bug 25946: borrowerRelationship can be empty
When borrowerRelationship is empty in system preferences, Relationship
dropdown is not required and we accept empty value.

Also fixes bug that didn't let you to pick empty value even when you
specified that it should be possible in system preferences but in the
end of the string (i.e. "|father|mother" worked,
but "father|mother|" don't).

To reproduce (borrowerRelationship can be empty):
    1) Go to system preferences and make borrowerRelationship empty.
    2) Create a new patron who is assumed to have a guarantor or modify
    the existing one.
    3) Under "Guarantor Information" click on "Search to add" button.
    After performing the search, select a user to act as guarantor. Try to save your changes.
    4) Observe that relationship field is required in order to save but
    you can't actually choose anything as it doesn't contain anything.
    5) Apply the patch.
    6) Repeat steps above.
    7) Observe that it allows you to save the form now.

To reproduce (can't choose empty value bug):
    1) Go to system preferences and set borrowerRelationship exactly
    to "father|mother|".
    2) Create a new patron who is assumed to have a guarantor or modify
    the existing one.
    3) Under "Guarantor Information" click on "Search to add" button.
    After performing the search, select a user to act as guarantor.
    4) Observe that there's no option to leave relationship field empty.
    5) Apply the patch.
    6) Repeat steps above.
    7) Observe that it has empty option that you can choose and save
    the form.

Mentored-by: Andrew Nugged <nugged@gmail.com>

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit d0cc5fa97a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2021-04-07 11:42:20 +02:00
C4
…
Koha Bug 25946: borrowerRelationship can be empty 2021-04-07 11:42:20 +02:00
acqui
…
admin
…
api
…
authorities
…
basket
…
bin
…
catalogue
…
cataloguing
…
circ
…
clubs
…
course_reserves
…
debian
…
docs
…
errors
…
etc
…
ill
…
installer
…
koha-tmpl
…
labels
…
members Bug 25946: borrowerRelationship can be empty 2021-04-07 11:42:20 +02:00
misc
…
offline_circ
…
opac
…
patron_lists
…
patroncards
…
plugins
…
pos
…
reports
…
reserve
…
reviews
…
rotating_collections
…
serials
…
services
…
skel
…
suggestion
…
svc
…
t
…
tags
…
tmp/modified_authorities
…
tools
…
virtualshelves
…
xt
…
.editorconfig
…
.eslintrc.json
…
.gitignore
…
.htaccess
…
.mailmap
…
.perlcriticrc
…
.scss-lint.yml
…
INSTALL
…
Koha.pm
…
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL
…
README
…
README.md
…
README.robots
…
about.pl
…
app.psgi
…
changelanguage.pl
…
cpanfile
…
fix-perl-path.PL
…
gulpfile.js
…
help.pl
…
koha_perl_deps.pl
…
kohaversion.pl
…
mainpage.pl
…
package.json
…
rewrite-config.PL
…
yarn.lock
…

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo