X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FCustomVariable.pm;h=eeae39aafaf9fb9c640aa002b2ecedcadeae63be;hb=b293ff8ad52fc76ba0c44783e3982418114d6b08;hp=a34640518eb2dabcf8991203a6266db44f5dc682;hpb=43de7ef11a1fe565968656c24ea0772a60667b3b;p=kivitendo-erp.git diff --git a/SL/DB/CustomVariable.pm b/SL/DB/CustomVariable.pm index a34640518..eeae39aaf 100644 --- a/SL/DB/CustomVariable.pm +++ b/SL/DB/CustomVariable.pm @@ -52,7 +52,7 @@ sub parse_value { return $self->timestamp_value(!defined($unparsed) ? undef : ref($unparsed) eq 'DateTime' ? $unparsed->clone : DateTime->from_kivitendo($unparsed)); } - # text, textfield, select + # text, textfield, htmlfield and select $self->text_value($unparsed); } @@ -92,7 +92,7 @@ sub value { return $self->timestamp_value ? $self->timestamp_value->clone->truncate(to => 'day') : undef; } - goto &text_value; # text, textfield and select + goto &text_value; # text, textfield, htmlfield and select } sub value_as_text { @@ -116,7 +116,7 @@ sub value_as_text { return $object ? $object->displayable_name : ''; } - goto &text_value; # text, textfield and select + goto &text_value; # text, textfield, htmlfield and select } sub is_valid { @@ -125,7 +125,7 @@ sub is_valid { require SL::DB::CustomVariableValidity; # only base level custom variables can be invalid. ovverloaded ones could potentially clash on trans_id, so disallow them - return 1 if $_->sub_module; + return 1 if $self->sub_module; $self->{is_valid} //= do { my $query = [config_id => $self->config_id, trans_id => $self->trans_id];