--- a/src/pyams_thesaurus/zmi/term.py Sat Jan 27 00:40:58 2018 +0100
+++ b/src/pyams_thesaurus/zmi/term.py Mon Jan 29 16:56:44 2018 +0100
@@ -252,7 +252,7 @@
else:
term_changes = changes.get(IThesaurusTerm, ())
if ('status' in term_changes) or ('label' in term_changes):
- label = self.context.generic.label.replace("'", "'")
+ label = (self.context.generic or self.context).label.replace("'", "'")
return {'status': 'callback',
'callback': 'PyAMS_thesaurus.tree.updateTerm',
'options': {'term': label}}