changeset 83:2ecf13200e87

Fix issue from a previous commit
author Benoît Allard <benoit.allard@greenbone.net>
date Thu, 09 Oct 2014 14:26:33 +0200
parents d6fa288e92a7
children cc836f9e869e
files farol/producttree.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/farol/producttree.py	Thu Oct 09 14:26:15 2014 +0200
+++ b/farol/producttree.py	Thu Oct 09 14:26:33 2014 +0200
@@ -204,7 +204,7 @@
 
     parent = ptree
     if request.form['parent_branch']:
-        try: pbranch = ptree.getBranch([int(p) for p in request.form['parent_branch'].split('/')])
+        try: parent = ptree.getBranch([int(p) for p in request.form['parent_branch'].split('/')])
         except (ValueError, IndexError): abort(404)
     elif request.form['parent_relationship']:
         parent = ptree._relationships[int(request.form['parent_relationship'])]

http://farol.wald.intevation.org