Skip to content

Commit f644380

Browse files
author
Ralf Schlatterbeck
committed
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.
1 parent c818093 commit f644380

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

roundup/cgi/actions.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: actions.py,v 1.66 2007-04-27 00:17:11 richard Exp $
1+
#$Id: actions.py,v 1.67 2007-05-07 14:03:30 schlatterbeck Exp $
22

33
import re, cgi, StringIO, urllib, Cookie, time, random, csv, codecs
44

@@ -404,9 +404,8 @@ def _editnodes(self, all_props, all_links):
404404
m = []
405405
for needed in order:
406406
props = all_props[needed]
407+
cn, nodeid = needed
407408
if props:
408-
cn, nodeid = needed
409-
410409
if nodeid is not None and int(nodeid) > 0:
411410
# make changes to the node
412411
props = self._changenode(cn, nodeid, props)

0 commit comments

Comments
 (0)