[rt-users] Minor patch

Jesse Vincent jesse at bestpractical.com
Mon Oct 8 09:32:48 EDT 2007


Thanks for the patch. That looks like a kind of strange place to put  
that skip. Is there a reason it's not at the start of the loop?

-jesse

On Oct 8, 2007, at 4:03 AM, Brian Gallew wrote:

> The following patch prevents an error message about "Unknown update  
> type" on my RT installation whenever I try to update a multi-choice  
> custom field with categories.
>
> --- lib/RT/Interface/Web.pm     2007-07-19 22:30:01.000000000 +0300
> +++ local/lib/RT/Interface/Web.pm       2007-10-07  
> 15:10:17.000000000 +0300
> @@ -1281,6 +1281,7 @@
>             s/\r//g foreach @values;
>         }
>         @values = grep defined && $_ ne '', @values;
> +        next if $arg =~ /Category$/;
>         if ( $arg eq 'AddValue' || $arg eq 'Value' ) {
>             foreach my $value (@values) {
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly  
> Media. Buy a copy at http://rtbook.bestpractical.com
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20071008/c10d2151/attachment.sig>


More information about the rt-users mailing list