Needs review
Project:
Taxonomy Image
Version:
6.x-1.6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2010 at 21:11 UTC
Updated:
8 Feb 2010 at 21:13 UTC
When changing the term without changing the image the tax image cache is not updated. Here is a patch:
Original from line 655
else
drupal_set_message(t('Error while adding image [tid = !tid, path = @path].', array('!tid' => $tid, '@path' => $filepath)), 'error');
}
}
+ // clear tax image cache if the name or description has changed for the tid
+ $table = taxonomy_image_flush_caches();
+ cache_clear_all('taxonomy_image:'. $tid, $table[0]);
break;
case 'delete':
taxonomy_image_delete($tid);
break;
}
Comments
Comment #1
yingtho commented