# HG changeset patch # User Thierry Florac # Date 1517241404 -3600 # Node ID c41afb5121fd445cd3e5e50b47266829f32ea6d0 # Parent bef87ac04ecf89b7f24c09f1bd7f14b0fe561ca3 Correction in JSON response of AJAX term update form diff -r bef87ac04ecf -r c41afb5121fd src/pyams_thesaurus/zmi/term.py --- 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}}