|
Lines 99-109
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
| 99 |
######################################### |
99 |
######################################### |
| 100 |
## Operations |
100 |
## Operations |
| 101 |
## |
101 |
## |
| 102 |
if ($op =~/save/i){ |
102 |
if ( $op =~ /save/i ) { |
| 103 |
if ($$suggestion_ref{'suggestionid'}>0){ |
103 |
if ( $$suggestion_ref{"STATUS"} ) { |
| 104 |
&ModSuggestion($suggestion_ref); |
104 |
if ( my $tmpstatus = lc( $$suggestion_ref{"STATUS"} ) =~ /ACCEPTED|REJECTED/i ) { |
| 105 |
} |
105 |
$$suggestion_ref{ lc( $$suggestion_ref{"STATUS"}) . "date" } = C4::Dates->today; |
| 106 |
else { |
106 |
$$suggestion_ref{ lc( $$suggestion_ref{"STATUS"}) . "by" } = C4::Context->userenv->{number}; |
|
|
107 |
} |
| 108 |
$$suggestion_ref{"manageddate"} = C4::Dates->today; |
| 109 |
$$suggestion_ref{"managedby"} = C4::Context->userenv->{number}; |
| 110 |
} |
| 111 |
if ( $$suggestion_ref{'suggestionid'} > 0 ) { |
| 112 |
&ModSuggestion($suggestion_ref); |
| 113 |
} else { |
| 107 |
###FIXME:Search here if suggestion already exists. |
114 |
###FIXME:Search here if suggestion already exists. |
| 108 |
my $suggestions_loop = |
115 |
my $suggestions_loop = |
| 109 |
SearchSuggestion( $suggestion_ref ); |
116 |
SearchSuggestion( $suggestion_ref ); |
| 110 |
- |
|
|