Changeset 1357
- Timestamp:
- 02/12/08 02:39:11 (5 months ago)
- Files:
-
- branches/release-29/lib/MT/Comment.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-29/lib/MT/Comment.pm
r1174 r1357 268 268 $comment->junk_log(join "\n", @{$comment->{__junk_log}}) 269 269 if ref $comment->{__junk_log} eq 'ARRAY'; 270 $comment->SUPER::save(); 270 my $ret = $comment->SUPER::save(); 271 delete $comment->{__changed}{visibility} if $ret; 272 return $ret; 271 273 } 272 274 … … 323 325 $vis_delta = -1; 324 326 } 325 $comment->{__changed}{visibility} = $vis_delta; 327 $comment->{__changed}{visibility} ||= 0; 328 $comment->{__changed}{visibility} += $vis_delta; 326 329 327 330 return $comment->SUPER::visible($is_visible);
