Item1869: No way to forcenewrevision from saveTopicText

pencil
Priority: Normal
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
Foswiki:Func provides an interface saveTopicText with purports to save a topic "with embedded meta". This can be useful on occasion, as long as you don't attempt to manually extract that meta. Unfortunately, the interface doesn't allow you to specify any options (other than ignorePermissions and dontNotify) on the save, so you end up with a new revision if you are not careful if ReplaceIfEditedWithin is in range.

This function should be deprecated and replaced with a call that lets you pass all the options.

-- CrawfordCurrie - 31 Jul 2009

There is such a call, saveTopic. or better, you can build a Foswiki::Meta object and just ->save it.

No action.

-- CrawfordCurrie - 16 Dec 2009

ItemTemplate edit

Summary No way to forcenewrevision from saveTopicText
ReportedBy CrawfordCurrie
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r2 - 16 Dec 2009, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy