Lines 61-76
if( !$biblio ) {
Link Here
|
61 |
} |
61 |
} |
62 |
|
62 |
|
63 |
if( !@errors && defined $review ) { |
63 |
if( !@errors && defined $review ) { |
64 |
if ($review !~ /\S/) { |
64 |
if ($review !~ /\S/) { |
65 |
push @errors, {empty=>1}; |
65 |
push @errors, {empty=>1}; |
66 |
} else { |
66 |
} else { |
67 |
$clean = C4::Scrubber->new('comment')->scrub($review); |
67 |
$clean = C4::Scrubber->new('comment')->scrub($review); |
68 |
if ($clean !~ /\S/) { |
68 |
if ($clean !~ /\S/) { |
69 |
push @errors, {scrubbed_all=>1}; |
69 |
push @errors, {scrubbed_all=>1}; |
70 |
} else { |
70 |
} else { |
71 |
if ($clean ne $review) { |
71 |
if ($clean ne $review) { |
72 |
push @errors, {scrubbed=>$clean}; |
72 |
push @errors, {scrubbed=>$clean}; |
73 |
} |
73 |
} |
74 |
if ($savedreview) { |
74 |
if ($savedreview) { |
75 |
$savedreview->set( |
75 |
$savedreview->set( |
76 |
{ |
76 |
{ |
Lines 88-96
if( !@errors && defined $review ) {
Link Here
|
88 |
} |
88 |
} |
89 |
)->store->reviewid; |
89 |
)->store->reviewid; |
90 |
} |
90 |
} |
91 |
unless (@errors){ $template->param(WINDOW_CLOSE=>1); } |
91 |
unless (@errors){ $template->param(WINDOW_CLOSE=>1); } |
92 |
} |
92 |
} |
93 |
} |
93 |
} |
94 |
} |
94 |
} |
95 |
(@errors ) and $template->param( ERRORS=>\@errors); |
95 |
(@errors ) and $template->param( ERRORS=>\@errors); |
96 |
($cgi_debug) and $template->param(cgi_debug=>1 ); |
96 |
($cgi_debug) and $template->param(cgi_debug=>1 ); |
97 |
- |
|
|