RT 3.0.4: Bug: Ticket/Update.html ignores TimeWorked when content is empty

Hi,

When I click to “resolve”, and there’s nothing to add to the content,
but I set the “time worked” to some value, this value is ignored.

In addition:
Ticket/Update.html does not show the current TimeWorked
value. Intuitively that would mean that the entered value would be
added to the old time worked. In fact, the old value is just replaced
with the entered one.

Regards,
Stan

Sean Perry,
I tried your script to give an error when no time worked is entered.
But with this bug it has no sense, because time is entered, the script
says ok, and no time is recorded in RT.

This has been discovered a long time ago, perhaps somebody has a
solution, or is there a patch?

Thanks

Samuel-----Original Message-----
From: Stanislav Sinyagin [mailto:ssinyagin@yahoo.com]
Sent: Tuesday,22 July,2003 16:23
To: rt-3.0-bugs@fsck.com; rt-devel@lists.fsck.com

Hi,

When I click to “resolve”, and there’s nothing to add to the content,
but I set the “time worked” to some value, this value is ignored.

In addition:
Ticket/Update.html does not show the current TimeWorked value.
Intuitively that would mean that the entered value would be added to the
old time worked. In fact, the old value is just replaced with the
entered one.

Regards,
Stan

rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

I need this feature and worked on a workaround.
Things are changed only if there is a Content, the content is a
message in comment or correspond. I set up this mmmmm bad workaround,
it is very very untidy but it works. When the content is nothing it
sets it to 2 spaces, so it is recorded as a comment and the time is
also recorded.

— /usr/share/request-tracker3/html/Ticket/Display.html 2003-
07-12 10:24:37.000000000 +0200
+++ /usr/local/share/request-tracker3/html/Ticket/Display.html 2003-
10-20 18:00:29.000000000 +0200
@@ -91,6 +91,10 @@
}
}

  • if ( ($ARGS{‘UpdateContent’} eq ‘’) && ($ARGS{‘UpdateTimeWorked’}))
    {
  • $ARGS{‘UpdateContent’} = ’ ';
  • }
    if ( $ARGS{‘UpdateContent’} ) {
    $ARGS{‘UpdateContent’} =~ s/\r\n/\n/g;
    if ( $ARGS{‘UpdateContent’} ne ‘’

Samuel

P.S. I tried a different solution, but after a couple of hours i
discovered that it needed too much time for me…
You need to create a new sub wich calculates the timeworked, when you
can’t use _TimeWorked because it should be only called by
_NewTransaction…-----Original Message-----
From: Senoner Samuel
Sent: Tuesday,14 October,2003 16:45
To: Stanislav Sinyagin; rt-devel@lists.fsck.com; Sean Perry

Sean Perry,
I tried your script to give an error when no time worked is entered.
But with this bug it has no sense, because time is entered, the script
says ok, and no time is recorded in RT.

This has been discovered a long time ago, perhaps somebody has a
solution, or is there a patch?

Thanks

Samuel

-----Original Message-----
From: Stanislav Sinyagin [mailto:ssinyagin@yahoo.com]
Sent: Tuesday,22 July,2003 16:23
To: rt-3.0-bugs@fsck.com; rt-devel@lists.fsck.com

Hi,

When I click to “resolve”, and there’s nothing to add to the content,
but I set the “time worked” to some value, this value is ignored.

In addition:
Ticket/Update.html does not show the current TimeWorked value.
Intuitively that would mean that the entered value would be added to the
old time worked. In fact, the old value is just replaced with the
entered one.

Regards,
Stan

rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel

rt-devel mailing list
rt-devel@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-devel