Commit 39dd80d375362db63bab37e0cf5b80321e64e819

Authored by Adhidarma Hadiwinoto
1 parent 871731b800
Exists in master

parent_term->tid

Showing 1 changed file with 4 additions and 1 deletions Side-by-side Diff

sinkronisasi.include.php
... ... @@ -188,7 +188,10 @@ function sinkronisasi_pair_with_local_tid($term) {
188 188  
189 189 function sinkronisasi_pair_with_parent($term) {
190 190 if ($term->_parent) {
191   - $term->parent = sinkronisasi_get_term_by_field_original_tid($term->_parent);
  191 + $parent_term = sinkronisasi_get_term_by_field_original_tid($term->_parent);
  192 + if ($parent_term)
  193 + $term->parent = $parent_term->tid;
  194 + }
192 195 unset($term->_parent);
193 196 }
194 197