|
Lines 148-161
if ( $op eq "add_confirm" ) {
Link Here
|
| 148 |
$suggestion->{branchcode} = $input->param('branchcode') || C4::Context->userenv->{"branch"}; |
148 |
$suggestion->{branchcode} = $input->param('branchcode') || C4::Context->userenv->{"branch"}; |
| 149 |
|
149 |
|
| 150 |
&NewSuggestion($suggestion); |
150 |
&NewSuggestion($suggestion); |
|
|
151 |
|
| 152 |
# delete empty fields, to avoid filter in "SearchSuggestion" |
| 153 |
foreach my $field ( qw( title author publishercode copyrightdate place collectiontitle isbn STATUS ) ) { |
| 154 |
delete $suggestion->{$field}; #clear search filters (except borrower related) to show all suggestions after placing a new one |
| 155 |
} |
| 156 |
$suggestions_loop = &SearchSuggestion($suggestion); |
| 157 |
|
| 151 |
push @messages, { type => 'info', code => 'success_on_inserted' }; |
158 |
push @messages, { type => 'info', code => 'success_on_inserted' }; |
| 152 |
|
159 |
|
| 153 |
} |
160 |
} |
| 154 |
# delete empty fields, to avoid filter in "SearchSuggestion" and load all suggestions for display |
|
|
| 155 |
foreach my $field ( qw( title author publishercode copyrightdate place collectiontitle isbn STATUS ) ) { |
| 156 |
delete $suggestion->{$field}; #clear search filters (except borrower related) to show all suggestions after placing a new one |
| 157 |
} |
| 158 |
$suggestions_loop = &SearchSuggestion($suggestion); |
| 159 |
$op = 'else'; |
161 |
$op = 'else'; |
| 160 |
} |
162 |
} |
| 161 |
|
163 |
|
| 162 |
- |
|
|