fix bug 316

This commit is contained in:
fpeters 2004-05-14 15:36:32 +00:00
parent 41831a2e53
commit 4132192a0f
1 changed files with 1 additions and 2 deletions

View File

@ -68,6 +68,7 @@ class Rubric(ObjectWebMixin, Rubric):
def getViewLayout(self, fields, parentSlot = None):
layout = X.array()
div = layout
if self.contentId:
web = getWeb(self.contentId)
if web.canGetObject(self.contentId):
@ -88,8 +89,6 @@ class Rubric(ObjectWebMixin, Rubric):
layout += X.buttonStandalone(
'edit', X.idUrl(self.contentId, 'edit'))
div = X.div(_class = 'membersSet')
else:
div = layout
slot = self.getSlot('membersSet')
if slot.getValue():