Small little crash fix
svn: r13834
This commit is contained in:
parent
d0318dd1a2
commit
b4512427af
@ -110,7 +110,7 @@ class EditPerson(EditPrimary):
|
|||||||
return gen.lib.Person()
|
return gen.lib.Person()
|
||||||
|
|
||||||
def get_menu_title(self):
|
def get_menu_title(self):
|
||||||
if self.obj.get_handle():
|
if self.obj and self.obj.get_handle():
|
||||||
name = name_displayer.display(self.obj)
|
name = name_displayer.display(self.obj)
|
||||||
title = _('Person: %(name)s') % {'name': name}
|
title = _('Person: %(name)s') % {'name': name}
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user