bug fix: ignore target (and metadata) if view is not a node view, e.g. when in the management interface
This commit is contained in:
parent
86da0990e1
commit
0a6ba7bab1
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 Helmut Merz helmutm@cy55.de
|
# Copyright (c) 2012 Helmut Merz helmutm@cy55.de
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -34,7 +34,7 @@ class Controller(BaseController):
|
||||||
|
|
||||||
def setupMetadata(self):
|
def setupMetadata(self):
|
||||||
macros = self.macros
|
macros = self.macros
|
||||||
target = self.view.virtualTarget
|
target = getattr(self.view, 'virtualTarget', None)
|
||||||
if target is not None:
|
if target is not None:
|
||||||
desc = target.dcDescription
|
desc = target.dcDescription
|
||||||
if desc:
|
if desc:
|
||||||
|
|
Loading…
Add table
Reference in a new issue