Okay, I guess I mis-understood what was happening in Editor.pm.
The code for ignore_cgi_item_id I cited before does not do what I
thought. It's related to save_cgi.
Setting cgi=0 (or not setting it at all) prevents item_id from being
used as the new key. That works fine. I'm not sure why I'd left cgi=1
all this time anyway - I'm not using any cgi args.
But, there is a line (2258 in the nightly build 200511110658) that says:
my $key = $opt->{item_id} || $CGI->{item_id};
This uses the CGI value to populate the form regardless of $opt->{cgi}.
So I changed it to:
my $key = $opt->{cgi} ? $opt->{item_id} || $CGI->{item_id} :
$opt->{item_id};
This ensures that the key stays blank as the form is populated, even if
there is a value present.
Is this suitable for addition to CVS? I'm a CVS virgin...
JT
_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users
Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.