Bug 34963: Restore the ability to blank fields when editing a suggestion
Regression introduced by bug 23991. We don't want to remove the fields from the edition if they are empty. Ideally we should have separate parameters for edition and search, but this is the low-effort fix, and hopefully won't introduce side-effects. Test plan: Try to edit a suggestion and blank some fields Try to search for suggestions using the search form on the left of the screen Signed-off-by: Ray Delahunty <lib-systems@arts.ac.uk> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> (cherry picked from commitcd1f4145fe
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commite6a2b1afde
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
e5181851c7
commit
8f521bdb3c
1 changed files with 5 additions and 2 deletions
|
@ -116,8 +116,11 @@ foreach (keys %$suggestion_ref){
|
||||||
}
|
}
|
||||||
delete $suggestion_only->{branchcode} if $suggestion_only->{branchcode} eq '__ANY__';
|
delete $suggestion_only->{branchcode} if $suggestion_only->{branchcode} eq '__ANY__';
|
||||||
delete $suggestion_only->{budgetid} if $suggestion_only->{budgetid} eq '__ANY__';
|
delete $suggestion_only->{budgetid} if $suggestion_only->{budgetid} eq '__ANY__';
|
||||||
while ( my ( $k, $v ) = each %$suggestion_only ) {
|
|
||||||
delete $suggestion_only->{$k} if $v eq '';
|
unless ( $op eq 'save' ) {
|
||||||
|
while ( my ( $k, $v ) = each %$suggestion_only ) {
|
||||||
|
delete $suggestion_only->{$k} if $v eq '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my ( $template, $borrowernumber, $cookie, $userflags ) = get_template_and_user(
|
my ( $template, $borrowernumber, $cookie, $userflags ) = get_template_and_user(
|
||||||
|
|
Loading…
Reference in a new issue