Ticket #820 (closed defect: fixed)
newTiddler macro breaks if template doesn't include text
| Reported by: | mahemoff | Owned by: | mahemoff |
|---|---|---|---|
| Priority: | undefined | Milestone: | 2.4.2 |
| Component: | core | Version: | |
| Severity: | undefined | Keywords: | |
| Cc: |
Description (last modified by FND) (diff)
config.macros.newTiddler.onClickNewTiddler will break if:
- there is a "template" parameter which references a tiddler containing no HTML control for tiddler text
- there is a "text" parameter
The problem is apparently this:
if(typeof text == "string")
story.getTiddlerField(title,"text").value = text.format([title]);
story.getTiddlerField(title, "text") is returning null if the template happens to not include a "text" field.
(This arises for me because I am not allowing general users to change the text, which is simply a couple of macros.)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

