Roundup Tracker - Issues

Issue 1177477

classification
unable to link from an item's creator to an item
Type: Severity: normal
Components: None Versions:
process
Status: closed invalid
:
: schlatterbeck : richard, schlatterbeck
Priority: normal :

Created on 2005-04-06 01:53 by anonymous, last changed 2009-12-14 21:46 by schlatterbeck.

Messages
msg1927 Author: [hidden] (anonymous) Date: 2005-04-06 01:53
<form method="GET" name="newContact" action="contact">
   <fieldset>
   <legend>Create New Contact</legend>
   <input name="@template" type="hidden" value="item"/>
   <input name="@action" type="hidden" value="new"/>
   <input tal:attributes="name
string:@add@station${context/id}@contacts" type="hidden"
value="contact-1"/>
   <input name="@type" type="hidden" value="2"/>
   <input name="@required" type="hidden" value="name"/>
   <strong>Name: </strong><input name="name"/>
   <input type="submit" name="submit" value="Create"/>
   </fieldset>
</form>

The @add@station bit in the above form should add the
id of the created contact to the station's contacts
multilink, but it doesn't.
msg3931 Author: [hidden] (schlatterbeck) Date: 2009-12-14 21:46
This is probably mistaken, according to the docs of @add@:
"@remove@<propname>=id(s) or @add@<propname>=id(s)
    The “@add@” and “@remove@” edit actions apply only to Multilink
properties. The form value must be a comma-separate list of keys for the
class specified by the simple form variable. The listed items are added
to (respectively, removed from) the specified property."

So the value should really be an id not a designator as given in the
example. If a designator is available @link@ should be used.

Now maybe the submitter originally experimented with both @link@ and
@add@ -- I've just committed a fix that permits linking an already
existing node to a newly-created one (e.g. an existing msg to a newly
created item's messages property).
History
Date User Action Args
2009-12-14 21:46:19schlatterbecksetstatus: open -> closed
assignee: schlatterbeck
resolution: invalid
messages: + msg3931
nosy: + richard, schlatterbeck
2005-04-06 01:53:57anonymouscreate