Right now I have a term named the same thing in both languages on my site. I'm using the localized setting for terms (different id per term in each language). So lets say the english is 20 and the french is 21. I need to be able to type in the term and have it save both. I'm thinking I can just also use the language restriction to prevent any unwanted matching in concert with this change. I propose this code section below be changed to the following (before and after):

In menu_position.taxonomy.inc:


       // See if the term exists in the chosen vocabulary and return the tid;
      // otherwise, create a new 'autocreate' term for insert/update.
      if ($possibilities = taxonomy_term_load_multiple(array(), array('name' => trim($typed_term), 'vid' => array($form_state['values']['vid'])))) {
		$term = array_pop($possibilities);
		$value[] = (array)$term;
      }
 
----------------------------------------------------------------------------------------------------------------------------- 
 
       if ($possibilities = taxonomy_term_load_multiple(array(), array('name' => trim($typed_term), 'vid' => array($form_state['values']['vid'])))) {
		foreach($possibilities as $term){
			$value[] = (array)$term;
		}
      }

any thoughts are much appreciated.

thanks

Comments

rferguson’s picture

Issue summary: View changes