summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevinse <levinse>2011-05-08 02:48:14 +0000
committerlevinse <levinse>2011-05-08 02:48:14 +0000
commit281536ba41cbab1af72b44dd5c84e35f286362e2 (patch)
tree5c43ad3c4c49a78a457bf6c84af393af2d7d2427
parent26fafd64af3f013c0089e2fc3e9020d51cef2be8 (diff)
implemenent condition_sql for FS::part_event::Condition::agent, RT12715
-rw-r--r--FS/FS/part_event/Condition/agent.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/FS/FS/part_event/Condition/agent.pm b/FS/FS/part_event/Condition/agent.pm
index da428c15f..bdd4e12de 100644
--- a/FS/FS/part_event/Condition/agent.pm
+++ b/FS/FS/part_event/Condition/agent.pm
@@ -28,10 +28,10 @@ sub condition {
}
-#sub condition_sql {
-# my( $self, $table ) = @_;
-#
-# 'true';
-#}
+sub condition_sql {
+ my( $class, $table, %opt ) = @_;
+
+ "cust_main.agentnum = " . $class->condition_sql_option_integer('agentnum', $opt{'driver_name'});
+}
1;