[Rt-commit] [rtir] 01/02: rename a function
Jesse Vincent
jesse at bestpractical.com
Thu Mar 19 04:18:25 EDT 2015
This is an automated email from the git hooks/post-receive script.
jesse pushed a commit to branch 3.4/remove_old_constituencies
in repository rtir.
commit 88a9f6b9645eb152a9a4a3e51c3463c03eff661a
Author: Jesse Vincent <jesse at bestpractical.com>
Date: Thu Mar 19 01:17:45 2015 -0700
rename a function
---
bin/add_constituency.in | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/add_constituency.in b/bin/add_constituency.in
index 14a3188..459b37f 100755
--- a/bin/add_constituency.in
+++ b/bin/add_constituency.in
@@ -261,7 +261,7 @@ sub prompt_yN {
return 1;
}
-sub get_cf {
+sub get_constituency_cf {
my $cf = RT::CustomField->new( $RT::SystemUser );
$cf->Load("RTIR Constituency", LookupType => 'RT::Queue');
unless ( $cf->id ) {
@@ -275,7 +275,7 @@ sub cf_value_exists {
debug "Check that the constituency exists";
- my $cf = get_cf();
+ my $cf = get_constituency_cf();
my $values = $cf->Values;
$values->Limit( FIELD => 'Name', VALUE => $value );
my $value_obj = $values->First;
@@ -287,7 +287,7 @@ sub add_cf_value {
debug "Adding the value to the constituency CF";
- my $cf = get_cf();
+ my $cf = get_constituency_cf();
if ( cf_value_exists( $value ) ) {
debug "Value '$value' already exists";
} else {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the rt-commit
mailing list