You are here: Foswiki>Tasks Web>Item3869 (06 Jan 2015, GeorgeClark)Edit Attach

Item3869: save&edit using templatetopic="" a topic containing attachments leaves a mess

pencil
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiUIEdit
Branches:
Reported By: TWiki:Main.SvenDowideit
Waiting For:
Last Change By: GeorgeClark
if you copy a topic using save / edit by setting templatetopic=""

then the attachments META's get copied too. (I'm guessing they may come from formtemplate="" if you set that)

this leaves us with the worst of all worlds - a topic containing broken links.

I would like it to also copy the attachments to the new topic smile but this maybe should be an option

so:
  • normally, edit&save should strip the attachments before going on,
  • if you add copyattachments=on it will copy attachments and their ,v files..

-- TWiki:Main/SvenDowideit - 10 Apr 2007

Bug or enhancement? Setting it enhancement, waiting for sponsor.

-- TWiki:Main.SteffenPoulsen - 17 Sep 2007

I think its a bug, but it does need someone to code it up atm

-- SvenDowideit - 20 Sep 2007

This was fixed somewhere along the way. bin/edit/Sandbox/SomeNewTopic?templatetopic=topicwithattachments copies the complete topic including attachments. Nothing broken.

-- GeorgeClark - 06 Jan 2015

ItemTemplate edit

Summary save&edit using templatetopic="" a topic containing attachments leaves a mess
ReportedBy TWiki:Main.SvenDowideit
Codebase
SVN Range TWiki-4.1.2, Sat, 07 Apr 2007, build 13305
AppliesTo Engine
Component FoswikiUIEdit
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r6 - 06 Jan 2015, GeorgeClark
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