author | Thierry Florac <thierry.florac@onf.fr> |
Wed, 13 Sep 2017 14:19:52 +0200 | |
changeset 161 | a5545e09b203 |
parent 160 | ff4fc5786058 |
child 162 | fc3266e6a510 |
src/pyams_content/component/illustration/zmi/__init__.py | file | annotate | diff | comparison | revisions |
--- a/src/pyams_content/component/illustration/zmi/__init__.py Wed Sep 13 12:30:05 2017 +0200 +++ b/src/pyams_content/component/illustration/zmi/__init__.py Wed Sep 13 14:19:52 2017 +0200 @@ -103,7 +103,8 @@ return IIllustration(self.context) def check_mode(self): - self.mode = self.parent_form.mode + if self.parent_form is not None: + self.mode = self.parent_form.mode def updateWidgets(self, prefix=None): super(IllustrationPropertiesInnerEditForm, self).updateWidgets(prefix)