[Rt-commit] rtir branch, 2.9/lookup-link-for-ip-cf, created. 3.0.0rc1-51-g743d5ff
Jim Brandt
jbrandt at bestpractical.com
Wed Apr 24 10:11:27 EDT 2013
The branch, 2.9/lookup-link-for-ip-cf has been created
at 743d5ffcdd8ba4e298cc519a120967002c1b8304 (commit)
- Log -----------------------------------------------------------------
commit 743d5ffcdd8ba4e298cc519a120967002c1b8304
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Wed Apr 24 10:09:30 2013 -0400
Make IP custom field link to Lookup page
diff --git a/etc/upgrade/3.0.0rc2/content b/etc/upgrade/3.0.0rc2/content
new file mode 100644
index 0000000..fb6bd9c
--- /dev/null
+++ b/etc/upgrade/3.0.0rc2/content
@@ -0,0 +1,20 @@
+use strict;
+use warnings;
+
+our @Final = (
+
+ sub {
+ $RT::Logger->debug("Going to make IP custom fields link to Lookup");
+ my $ip_cf = RT::CustomField->new(RT->SystemUser);
+ my ($ok, $msg) = $ip_cf->Load('IP');
+ if ( $ip_cf->Id ) {
+ $ip_cf->SetLinkValueTo('/RTIR/Tools/Lookup.html?type=ip&q=__CustomField__');
+ }
+ else{
+ $RT::Logger->error("IP custom field not found: $msg");
+ }
+ },
+
+);
+
+1;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list