Question
Editing an action using the plugins' edit form always adds the tag;
<input type="hidden" name="closed" value="BAD DATE FORMAT see Wiki.ActionTrackerPlugin#DateFormats"/>
I have checked and re checked the date format against the Time::ParseDate list and am absolutely convinced it is correct.
Here is the action before an edit;
%ACTION{ due="21-Jun-2005" creator="Main.NickPorter" uid="000006" state="open" created="21-Jun-2005" who="Main.NickPorter" notify="Main.NickPorter" }% Test Action
And here is the action after an edit;
%ACTION{ closed="BAD DATE FORMAT see TWiki.ActionTrackerPlugin#DateFormats" due="21-Jun-2005" creator="Main.NickPorter" uid="000006" state="open" created="21-Jun-2005" who="Main.NickPorter" closer="" notify="Main.NickPorter" }% Test Action - add something
I feel this has to be something to do with the dependancies but I've checked them with the ActionTrackerPlugin_installer.pl and everything seems to be okay. Here's the output;
Hit <Enter> to proceed with installation
y
Use of uninitialized value in numeric lt (<) at ./ActionTrackerPlugin_installer.pl line 325, <STDIN> line 1.
##########################################################
Checking dependency on Time::ParseDate....
##########################################################
Checking dependency on TWiki::Contrib::Attrs....
##########################################################
Checking dependency on TWiki::Contrib::CairoContrib....
*** ActionTrackerPlugin depends on package TWiki::Contrib::CairoContrib >=1.000,
which is described as "Optional, required if plugin is to be run with versions of TWiki before Cairo (1 Sep 2004). Available from the TWiki:Plugins/CairoContrib repository."
But when I tried to find it I got this error:
Can't locate TWiki/Contrib/CairoContrib.pm
Would you like me to try to download and install the latest version of CairoContrib from twiki.org? [y/n] n
##########################################################
Checking dependency on TWiki::Contrib::JSCalendarContrib....
I can't automatically update the revision history for
TWiki.ActionTrackerPlugin
Please edit the topic in TWiki and Save without changing it to update the history.
### ActionTrackerPlugin installed with 1 unsatisfied dependencies ###
I have no idea why Perl is complaining about the uninitialized value in line 325 and am not sure if this is connected.
The line of code which I believe is adding the hidden input tag is 406 from the formatTime sub in Action.pm. For some reason the $time variable is not being passed.
Any ideas as to what might be causing this or pointers for further trouble shooting would be most welcome.
Environment
--
TWikiGuest - 22 Jun 2005
Answer
Hmm. The
closed field is populated when the topic is saved, when the action
state is found to be
closed. What does the saved action look like in the TWiki topic after you close the action? I need to see the %ACTION tag....
Update: I'm pretty much certain this is the same problem as
ActionTrackerCloserEmpty - I will track the problem there.
--
CrawfordCurrie - 30 Jun 2005
This is the actions before an edit using the edit actions link;
%ACTION{ due="8-Jul-2005" creator="Main.NickPorter" uid="000006" state="open" created="21-Jun-2005" who="Main.NickPorter" notify="Main.NickPorter" }% Test Action add add add add
This is the same action after editing;
%ACTION{ closed="BAD DATE FORMAT see TWiki.ActionTrackerPlugin#DateFormats" due="8-Jul-2005" creator="Main.NickPorter" uid="000006" state="open" created="21-Jun-2005" who="Main.NickPorter" closer="" notify="Main.NickPorter" }% Test Action add add add add add more
As you can see the action state is still open and the date format is correct in both. Also it dosen't find any closed actions if I do an
%ACTIONSEARCH{state="closed"}%
--
NickPorter - 07 Jul 2005