[rt-users] Doubs about RTFM-2.2.0RC2

Pablo Silva psilvao at gmail.com
Wed Mar 29 09:25:57 EST 2006


Hi Alex:

  Thanks for your response, when I try to apply the patch I get the
following error:

[root at sar parches]# patch -p1 Record.pm.sinparche < parche.txt
patching file Record.pm.sinparche
patch: **** malformed patch at line 7: $self->_SetLastUpdated;

 Why this?, attach the patch file for your inspection

Greetings,
Pablo


On 3/28/06, Alex Vandiver <alexmv at bestpractical.com> wrote:
> On Tue, 2006-03-28 at 16:27 -0400, Pablo Silva wrote:
> > So what's the next there is a patch for this?
>
> This is already fixed in RT 3.5 and above -- I just backported the fix
> into 3.4, as well.  Patch is below.
>  - Alex
>
> Modified: rt/branches/3.4-RELEASE/lib/RT/Record.pm
> ==============================================================================
> --- rt/branches/3.4-RELEASE/lib/RT/Record.pm    (original)
> +++ rt/branches/3.4-RELEASE/lib/RT/Record.pm    Tue Mar 28 15:50:07 2006
> @@ -1459,7 +1459,7 @@
>
>      $self->_SetLastUpdated;
>
> -    if ( defined $args{'TimeTaken'} ) {
> +    if ( defined $args{'TimeTaken'} and $self->can('_UpdateTimeTaken'))
> {
>          $self->_UpdateTimeTaken( $args{'TimeTaken'} );
>      }
>      if ( $RT::UseTransactionBatch and $transaction ) {
>
>
-------------- next part --------------
Modified: rt/branches/3.4-RELEASE/lib/RT/Record.pm
==============================================================================
--- rt/branches/3.4-RELEASE/lib/RT/Record.pm (original)
+++ rt/branches/3.4-RELEASE/lib/RT/Record.pm Tue Mar 28 15:50:07 2006
@@ -1459,7 +1459,8 @@

$self->_SetLastUpdated;

- if ( defined $args{'TimeTaken'} ) {
+ if ( defined $args{'TimeTaken'} and $self->can('_UpdateTimeTaken'))
{
$self->_UpdateTimeTaken( $args{'TimeTaken'} );
}
if ( $RT::UseTransactionBatch and $transaction ) {


More information about the rt-users mailing list