changeset 86:2d41121ec991

Fix issue when relation are defined
author Benoît Allard <benoit.allard@greenbone.net>
date Thu, 09 Oct 2014 14:50:37 +0200
parents b6a48669edb8
children e02724c84bae
files farol/producttree.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/farol/producttree.py	Thu Oct 09 14:50:05 2014 +0200
+++ b/farol/producttree.py	Thu Oct 09 14:50:37 2014 +0200
@@ -55,8 +55,9 @@
 @document_required
 @producttree_required
 def view():
+    cvrf = get_current()
     return render_template('producttree/view.j2',
-                           producttree=get_current()._producttree)
+                           producttree=cvrf._producttree, cvrf=cvrf)
 
 @producttree.route('/branch/<path:path>/edit', methods=['GET', 'POST'])
 @document_required

http://farol.wald.intevation.org