You are here: Foswiki>Tasks Web>Item9933 (06 Dec 2010, GeorgeClark)Edit Attach

Item9933: ActionTracker edit task breaks Attachments

pencil
Priority: Urgent
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: ActionTrackerPlugin
Branches:
Reported By: BobCorless
Waiting For:
Last Change By: GeorgeClark
I use the CommentPlugin and Twisty to have both comments and actions in any Topic. I use a <div> and float left to keep buttons and entries aligned.

<!-- Do not edit below this line -->
<div style="float: left; width: 100%;">

---

%TWISTY{mode="div" showlink="%MAKETEXT{"Show Comments"}%" hidelink="%MAKETEXT{"Hide Comments"}%" linkclass="foswikiButton" remember="on" start="show"}%
%COMMENT{type="tableprepend"}%
%ENDTWISTY%
---

%TWISTY{showlink="%MAKETEXT{"View open tasks for this topic"}%" hidelink="%MAKETEXT{"Hide open tasks"}%" linkclass="foswikiButton" remember="off"}%
%ACTIONSEARCH{topic="%BASETOPIC%" state="open" sort="$due"}%
%ENDTWISTY% <br />
%TWISTY{showlink="%MAKETEXT{"View closed tasks for this topic"}%" hidelink="%MAKETEXT{"Hide Closed Tasks"}%" linkclass="foswikiButton" remember="off"}% %ACTIONSEARCH{topic="%BASETOPIC%" state="closed" sort="$due"}%
%ENDTWISTY%
---

%TWISTY{mode="div" showlink="%MAKETEXT{"Add Task"}%" hidelink="%MAKETEXT{"Hide (All) Tasks"}%" linkclass="foswikiButton" remember="on"}%
%COMMENT{ type="action"}%
%ENDTWISTY%
---

</div>

Test: Create a new Topic with the above used for comments and actions.
Enter a comment.
Add a new task - write out long date as "6 November 2010" (to avoid issues with Action Tracker date processing).
Add an attachment
View open tasks for the topic and "edit" the action to change the date to say 7th November (using the pop up JS calendar).
Review attachment area.

-- BobCorless - 01 Nov 2010

UPDATE: Removing the divs from around the COMMENTS and TWISTYs allows the Action edit to function properly without breaking the atatchments. These divs worked fine in 1.0.9 and I had them in the default new topic template. They are in all my topics. I am loathe to have to change these manually and would prefer if 1.1.1 functioned as 1.0.9!

Note: Adding a "COMMENT" at the bottom of this topic fails to insert properly:- it just inserted two attempts to update this by placing my text in the verbatim area.

-- BobCorless - 01 Nov 2010

I have seen something similar, but in 1.0.9. I haven't been able to replicate it though, it just seems to happen on a few topics.

Also, Item9083 looks to be a similar issue.

-- AndrewJones - 02 Nov 2010

Item9083 is definitely the same. Must've missed that. On further investigation I too can confirm (as in Item9083) that the ActionTracker is removing new lines at the end of the topic and any subsequent info is shunted up one line. First save/change and the "normal" blank line is remove without detriment. A subsequent change and the line is effectively shunted up to the end of the last line of text in the topic body.

-- BobCorless - 03 Nov 2010

I've closed this task. Item9083 is fixed, so hopefully this is fixed as well. Please reopen if that's not the case.

-- GeorgeClark - 06 Dec 2010

ItemTemplate edit

Summary ActionTracker edit task breaks Attachments
ReportedBy BobCorless
Codebase 1.1.1
SVN Range
AppliesTo Extension
Component ActionTrackerPlugin
Priority Urgent
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r4 - 06 Dec 2010, 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