From: <mp...@kr...> - 2006-05-23 17:30:40
|
Log Message: ----------- fixing bug where category elements weren't properly cleaned up after deletion Modified Files: -------------- krang/lib/Krang: Category.pm Revision Data ------------- Index: Category.pm =================================================================== RCS file: /usr/local/krang-cvs/krang/lib/Krang/Category.pm,v retrieving revision 1.77 retrieving revision 1.78 diff -Llib/Krang/Category.pm -Llib/Krang/Category.pm -u -r1.77 -r1.78 --- lib/Krang/Category.pm +++ lib/Krang/Category.pm @@ -1283,7 +1283,7 @@ no_update => $no_update, object => $cat); # remove existing element tree - $cat->element->delete if( $cat->{element} ); + $cat->element->delete if( $cat->element ); $cat->{element} = $element; $cat->{element_id} = undef; $cat->save(); |