View | Details | Raw Unified | Return to bug 10752
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (+12 lines)
Lines 457-462 h4.local_collapse a { font-size : 80%; text-decoration: none; } fieldset.brief o Link Here
457
457
458
<h1>Suggestions management</h1>
458
<h1>Suggestions management</h1>
459
459
460
461
[% FOR m IN messages %]
462
    <div class="dialog [% m.type %]">
463
        [% SWITCH m.code %]
464
        [% CASE 'already_exists' %]
465
            The suggestion has not been inserted. The same suggestion already exists (<a href='/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=[% m.id %]&op=show'>see the suggestion</a>)
466
        [% CASE %]
467
            [% m.code %]
468
        [% END %]
469
    </div>
470
[% END %]
471
460
[% UNLESS ( notabs ) %]
472
[% UNLESS ( notabs ) %]
461
    <div id="suggestiontabs" class="toptabs">
473
    <div id="suggestiontabs" class="toptabs">
462
    <ul class="ui-tabs-nav">
474
    <ul class="ui-tabs-nav">
(-)a/suggestion/suggestion.pl (-1 / +5 lines)
Lines 134-139 if ( $op =~ /save/i ) { Link Here
134
            SearchSuggestion( $suggestion_only );
134
            SearchSuggestion( $suggestion_only );
135
        if (@$suggestions_loop>=1){
135
        if (@$suggestions_loop>=1){
136
            #some suggestion are answering the request Donot Add
136
            #some suggestion are answering the request Donot Add
137
            my @messages;
138
            for my $suggestion ( @$suggestions_loop ) {
139
                push @messages, { type => 'error', code => 'already_exists', id => $suggestion->{suggestionid} };
140
            }
141
            $template->param( messages => \@messages );
137
        } 
142
        } 
138
        else {    
143
        else {    
139
            ## Adding some informations related to suggestion
144
            ## Adding some informations related to suggestion
140
- 

Return to bug 10752