<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=139120704-23022007><FONT face=Arial size=2>I notice that some
things seem to give two identical errors in the GUI- like trying to modify a CF
without the right permissions. It seems that this has to do with this paragraph
in </FONT></SPAN></DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2>RT::Interface::Web.pm:_ProcessObjectCustomFieldUpdates()</FONT></SPAN></DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2>-------------</FONT></SPAN></DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial size=2>
foreach my $arg ( keys %{ $args{'ARGS'} } ) {</FONT></SPAN></DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2> # since http won't pass in a
form element with a null value, we
need<BR> # to fake
it<BR> if ( $arg eq 'Values-Magic' )
{<BR> # We
don't care about the magic, if there's really a values
element;<BR>
next if $args{'ARGS'}->{'Value'} ||
$args{'ARGS'}->{'Values'};</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2> #
"Empty" values does not mean anything for Image and Binary
fields<BR>
next if $cf_type =~ /^(?:Image|Binary)$/;</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2> $arg =
'Values';<BR>
$args{'ARGS'}->{'Values'} =
undef;<BR> }</FONT></SPAN></DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2>-------------------</FONT></SPAN></DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial size=2>I've been trying to
figure this out and it seems that it's guaranteed to send every blank-valued
"Value" or "Values" argument round what follows twice. In the case of a "Value"
argument, you dont' notice usually because the $arg=Values; line means they pass
through different conditional branches below, one of which doesn't usually give
an error. But for a "Values" value, it goes through exactly the same code twice
and if there is an error, you see it twice. I just want to see if I'm not
missing anything here - it seems to me that you'll always go round the same code
twice with blank values? I'm guessing $args{'ARGS'} should be pre-processed
before this point to weed out duplicate blankvalue/magic blank value
pairs?</FONT></SPAN></DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=139120704-23022007><FONT face=Arial
size=2>PK</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV align=left><FONT face=Arial size=2>--</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Philip Kime</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>NOPS Systems Architect</FONT></DIV>
<DIV align=left><FONT face=Arial size=2>310 401 0407</FONT></DIV>
<DIV> </DIV></BODY></HTML>