Item14527: TopicStubAgent does not clear TEXT when an existing topic is replaced by a stub

Priority: Normal
Current State: Being Worked On
Released In: n/a
Target Release:
Applies To: Extension
Component: CopyContrib
Reported By: BramVanOosterhout
Waiting For: BramVanOosterhout
Last Change By: BramVanOosterhout
TopicStubAgent Line 85 establishes a topic object. When the topic exixsts, it will have $text. This should be cleared because the topic is replaced by a stub.

-- BramVanOosterhout - 09 Nov 2017

It's been a while, but I have finally worked out that the observed behavior is the desired behavior. If the destination topic exists, TopicStubAgent merges the stub fields with the existing topic. This is consistent with the behavior of TopicAgent.

To modify the behavior, I propose to add a switch: replace to the parameter list of TopicStubAgent and update TopicStubAgent to do a Topicsave , instead of a save, removing the text as it does so.


-- BramVanOosterhout - 15 May 2020

ItemTemplate edit

Summary TopicStubAgent does not clear TEXT when an existing topic is replaced by a stub
ReportedBy BramVanOosterhout
Codebase 2.1.4
SVN Range
AppliesTo Extension
Component CopyContrib
Priority Normal
CurrentState Being Worked On
WaitingFor BramVanOosterhout
ReleasedIn n/a
Topic revision: r2 - 15 May 2020, BramVanOosterhout
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