I installed OG Forums properly and everything is working fine. I have all the forums being created within the one container option. However, within the one container I have created sub-containers and after the initial group forum is created I move it into one of the sub-containers. Now whenever I save a group, it moves the forum for that group back to the main level - I can't even put them back into the main container that they started in. Any ideas?

Comments

nsciacca’s picture

Status: Active » Fixed

Okay - so I didn't wait to get an answer on this, but I found the fix. Didn't feel like making a patch since I don't know if anyone else is bothered by this.

// og_forum.module line 985
case 'update':
  //Make sure if the group's title has changed, the title of it's root forum is updated as well.
  if (og_is_group_type($node->type)) {
    $tid = db_result(db_query('SELECT tid FROM {og_term} WHERE nid = %d', $node->nid));
    if ($tid) {
    
      $term = taxonomy_get_term($tid);
      $term->name = $node->title;
      $term = (array)$term;
      
      /* NSciacca: include parent data so when we save the term it doesn't overwrite our hierarchies */
      $parents = taxonomy_get_parents($tid);
      foreach ($parents as $parent) {
        $pid[] = $parent->tid;
      }          
      $term['parent'] = $pid;
      /* NSciacca: end code */
      
      taxonomy_save_term($term);    //will have any other modules update the term's URL aliases
    }
  }
Anonymous’s picture

Hey Nsciacca

That's brilliant , thanks for your contribution.

I'll get that into the next development release .

Best, Paul

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.