Possible [Bug] in add-tm-field and add-tm-tag widget messages

41 views
Skip to first unread message

Mohammad

unread,
Apr 8, 2021, 3:38:46 AM4/8/21
to TiddlyWiki
1. Open https://tiddlywiki.com/
2. Create a new tiddler with below text


<$button>Tag me
<$fieldmangler tiddler=MyTiddler>
<$list filter="one two" variable=item>
<$action-sendmessage $message="tm-add-field" $param=<<item>>/>
</$list>
</$fieldmangler>
</$button>

3. don't save and open preview pan
4. click on the button
5. MyTiddler is created and fields are added but surprisingly the fields also added to the tiddler in preview!!

The same happened with `tm-add-tag`

Note: If you save the tiddler and click the button, you wont see the above issue!

Expected behavior: the operation shall only be applied to the tiddler mentioned in fieldmangler widget!

TW Tones

unread,
Apr 8, 2021, 4:20:00 AM4/8/21
to TiddlyWiki
Mohammad,

I reproduced this my self also in preview mode of FieldMangler Widget (Examples) on tiddlywiki.com.

This is without creating a new tiddler. 

Yes, I think it is a bug, perhaps as a result of the tiddler being in draft mode, the changes "also" occur on the draft tiddler which is then saved.

Tones

Mohammad Rahmani

unread,
Apr 8, 2021, 4:25:08 AM4/8/21
to tiddl...@googlegroups.com
On Thu, Apr 8, 2021 at 12:50 PM TW Tones <anthony...@gmail.com> wrote:
Mohammad,

I reproduced this my self also in preview mode of FieldMangler Widget (Examples) on tiddlywiki.com.

Ah yes, Tiddlywiki has the same example!

This is without creating a new tiddler. 

Yes, I think it is a bug, perhaps as a result of the tiddler being in draft mode, the changes "also" occur on the draft tiddler which is then saved.

Thank you! I submit a bug report on GitHub

Tones


On Thursday, 8 April 2021 at 17:38:46 UTC+10 Mohammad wrote:
1. Open https://tiddlywiki.com/
2. Create a new tiddler with below text


<$button>Tag me
<$fieldmangler tiddler=MyTiddler>
<$list filter="one two" variable=item>
<$action-sendmessage $message="tm-add-field" $param=<<item>>/>
</$list>
</$fieldmangler>
</$button>

3. don't save and open preview pan
4. click on the button
5. MyTiddler is created and fields are added but surprisingly the fields also added to the tiddler in preview!!

The same happened with `tm-add-tag`

Note: If you save the tiddler and click the button, you wont see the above issue!

Expected behavior: the operation shall only be applied to the tiddler mentioned in fieldmangler widget!

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e018d6a0-6a12-4f0b-b13a-d22936000206n%40googlegroups.com.

Mohammad Rahmani

unread,
Apr 8, 2021, 4:33:05 AM4/8/21
to tiddl...@googlegroups.com

Best wishes
Mohammad


--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages