# HG changeset patch # User BenoƮt Allard # Date 1412857593 -7200 # Node ID 2ecf13200e87fb409b3c7b5c4cb07868d58b443d # Parent d6fa288e92a72fc30e150fd3b8e8d6e7428c74ff Fix issue from a previous commit diff -r d6fa288e92a7 -r 2ecf13200e87 farol/producttree.py --- 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'])]