/**
  * Restore object and subitems from trash
  *
  * @param boolean $check_parent_state
  * @return boolean
  */
 function restoreFromTrash($check_parent_state = true)
 {
     $restore = parent::restoreFromTrash($check_parent_state);
     if ($restore && !is_error($restore)) {
         $parent = $this->getParent();
         if (instance_of($parent, 'ProjectObject')) {
             $parent->refreshCommentsCount();
         }
         // if
     }
     // if
     return $restore;
 }