projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64f064
)
Validity-Accessor für CVars
author
Thomas Heck
<theck@linet-services.de>
Fri, 3 May 2013 13:52:14 +0000
(15:52 +0200)
committer
Jan Büren
<jan@kivitendo-premium.de>
Thu, 18 Jul 2013 07:09:00 +0000
(09:09 +0200)
SL/DB/CustomVariable.pm
patch
|
blob
|
history
diff --git
a/SL/DB/CustomVariable.pm
b/SL/DB/CustomVariable.pm
index
09718de
..
83ee89d
100644
(file)
--- a/
SL/DB/CustomVariable.pm
+++ b/
SL/DB/CustomVariable.pm
@@
-6,6
+6,7
@@
package SL::DB::CustomVariable;
use strict;
use SL::DB::MetaSetup::CustomVariable;
+use SL::DB::CustomVariableValidity;
__PACKAGE__->meta->initialize;
@@
-22,4
+23,10
@@
sub value {
goto &text_value; # text and select
}
+sub is_valid {
+ my ($self) = @_;
+
+ return SL::DB::Manager::CustomVariableValidity->get_all_count(config_id => $self->config_id, trans_id => $self->trans_id) == 0;
+}
+
1;