You are here: Foswiki>Tasks Web>Item10613 (30 Apr 2012, JimParker)Edit Attach

Item10613: ActionTrackerPlugin edit broken

Priority: Urgent
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: ActionTrackerPlugin
Reported By: KerstinPuschke
Waiting For: Main.JimParker
Last Change By: JimParker
Modifying an ACTION's due date with the date picker in the form opened by the ACTION's edit link fails. Instead of displaying the javascript calendar, the form data is saved.

This is probably because actionform.tmpl does not load JSCalendarContrib's javascript files. Adding

<script type="text/javascript" src="/pub/System/JSCalendarContrib/calendar.js"></script>
<script type="text/javascript" src="/pub/System/JSCalendarContrib/lang/calendar-en.js"></script>
<script type="text/javascript" src="/pub/System/JSCalendarContrib/calendar-setup.js"></script>
<script type="text/javascript" src="/pub/System/JSCalendarContrib/foswiki.js"></script>
<style type='text/css' media='all'>
@import url('/pub/System/JSCalendarContrib/calendar-blue.css');
.calendar {z-index:2000;}

to actionform.tmpl solves the problem for me.

-- KerstinPuschke - 08 Apr 2011

This problem has now been reported by several people. Thanks, Kerstin, for trying to solve it. Unfortunately actionform.tmpl is a sub-template inserted into the parent template, so it's definitely not the right solution. However it's pointing me in the right direction. Confirmed, and elevated from Normal to Urgent.

-- CrawfordCurrie - 19 Apr 2011

Unfortunately, the new version of the Plugin does not solve the problem for us. We're on 1.1.3 now.

-- KerstinPuschke - 19 Apr 2011

Kerstin, If Crawford's checkin ActionTrackerPlugin:608536755cdf does not solve the problem for your 1.1.3 installation, you should change the "Codebase" to reflect 1.1.3, change the status of the task from "closed" to to "waiting for feedback" and include CrawfordCurrie in the "WaitingFor" field so that Crawford is aware of this. Since I just came here by chance and I am not using this plugin at the moment (though I plan to do it very soon), I will let you do it.

-- RaulFRodriguez - 19 Apr 2011

I moved the loading of the JSCalendarContrib to be unconditional in the plugin initialisation. However, if you are using a non-Pattern skin, or you have some other extension in the way, it might be interfering. The more information you can provide, the more chance I have.

-- CrawfordCurrie - 20 Apr 2011

The problem persists in a foswiki instance that does not have any additional plugins or skins installed. Further, I realized that it is probably not related to JSCalendarContrib. A topic containing an ACTION (eg. System.ActionTrackerPlugin) perfectly loads the calendar-related js- and css-files. But if I click the item's edit link, all I got is a html fragment. There is no DOCTYPE, no html- or head- or body-tag. It is only a html-form, obviously built according to the template actionform.tmpl. I'll try to provide more details soon.

-- KerstinPuschke - 26 Apr 2011

Thanks. The devil is in the detail.

-- CrawfordCurrie - 27 Apr 2011

Hi, I am having a similar problem. I have the latest version of ActionTrackerPlugin (2.4.8, $Rev: 13327 (2011-12-08)) and 1.1.2 of foswiki (Foswiki-1.1.2, Wed, 10 Nov 2010, build 9940, Plugin API version 2.1)

When I click on the edit icon, a window for editing pops up, but i am unable to do any editing and it is not formatted in html. It shows this text:

---+ ActionItems %SUBSCRIBE% to change notifications via email ---+ Open Actions %ACTIONSEARCH{}% ---+ Action Items %ACTION{ closed="2012-01-12" closer="Main.JimParker" created="2012-01-12" creator="Main.JimParker" due="" state="closed" uid="000020" who="Main.JimParker" }% do something %ENDACTION% %ACTION{ created="2012-01-12" creator="Main.JimParker" due="2013-11-14" state="open" uid="000021" who="Main.JimParker" }% do sometning tough.%ENDACTION% 

-- JimParker - 12 Jan 2012

Jim, are there any Javascript errors reported in the browser, or errors in any of the server log files?

-- CrawfordCurrie - 28 Jan 2012

Hi this issue was fixed by turning off the alias plugin

-- JimParker - 24 Mar 2012
Topic revision: r13 - 30 Apr 2012, JimParker
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