]> git.uio.no Git - usit-rt.git/blobdiff - lib/RT/Attribute.pm
Upgrade 4.0.17 clean.
[usit-rt.git] / lib / RT / Attribute.pm
index a0edb15c43881f46a4e47cc2476089ce3bd79fb4..4350df0419d1083cf8b4d6775a3d6e5e8adc9c4b 100644 (file)
@@ -148,7 +148,7 @@ sub Create {
                  @_);
 
     if ($args{Object} and UNIVERSAL::can($args{Object}, 'Id')) {
-           $args{ObjectType} = ref($args{Object});
+           $args{ObjectType} = $args{Object}->isa("RT::CurrentUser") ? "RT::User" : ref($args{Object});
            $args{ObjectId} = $args{Object}->Id;
     } else {
         return(0, $self->loc("Required parameter '[_1]' not specified", 'Object'));