diff roundup/cgi/actions.py @ 3851:5fe1f30f7f30

Bug-fix: In case we have a @link@ to an existing node... ... *without* any properties set for that node, the linking would fail because nodeid is not set correctly. Now set the nodeid in any case even if no properties are changed.
author Ralf Schlatterbeck <schlatterbeck@users.sourceforge.net>
date Mon, 07 May 2007 14:03:30 +0000
parents 326269886c32
children 0dd05c9e5fff
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Fri Apr 27 00:17:11 2007 +0000
+++ b/roundup/cgi/actions.py	Mon May 07 14:03:30 2007 +0000
@@ -1,4 +1,4 @@
-#$Id: actions.py,v 1.66 2007-04-27 00:17:11 richard Exp $
+#$Id: actions.py,v 1.67 2007-05-07 14:03:30 schlatterbeck Exp $
 
 import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs
 
@@ -404,9 +404,8 @@
         m = []
         for needed in order:
             props = all_props[needed]
+            cn, nodeid = needed
             if props:
-                cn, nodeid = needed
-
                 if nodeid is not None and int(nodeid) > 0:
                     # make changes to the node
                     props = self._changenode(cn, nodeid, props)

Roundup Issue Tracker: http://roundup-tracker.org/