[freeside-commits] freeside/FS/FS/part_event Condition.pm,1.2,1.3
Ivan,,,
ivan at wavetail.420.am
Thu Oct 4 17:40:00 PDT 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/part_event
In directory wavetail:/tmp/cvs-serv25682/part_event
Modified Files:
Condition.pm
Log Message:
add disable ability to conditions & disable cust_bill_has_service, so the condition edit page renders again
Index: Condition.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Condition.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- Condition.pm 2 Oct 2007 00:18:59 -0000 1.2
+++ Condition.pm 5 Oct 2007 00:39:58 -0000 1.3
@@ -152,6 +152,17 @@
'true';
}
+=item disabled
+
+Condition classes may optionally define a disabled method. Returning a true
+value disbles the condition entirely.
+
+=cut
+
+sub disabled {
+ 0;
+}
+
=item implicit_flag
This is used internally by the I<once> and I<balance> conditions. You probably
More information about the freeside-commits
mailing list