Revision e0900c89
Von Moritz Bunkus vor etwa 3 Jahren hinzugefügt
SL/DB/CustomVariable.pm | ||
---|---|---|
52 | 52 |
return $self->timestamp_value(!defined($unparsed) ? undef : ref($unparsed) eq 'DateTime' ? $unparsed->clone : DateTime->from_kivitendo($unparsed)); |
53 | 53 |
} |
54 | 54 |
|
55 |
# text, textfield, select |
|
55 |
# text, textfield, htmlfield and select
|
|
56 | 56 |
$self->text_value($unparsed); |
57 | 57 |
} |
58 | 58 |
|
... | ... | |
92 | 92 |
return $self->timestamp_value ? $self->timestamp_value->clone->truncate(to => 'day') : undef; |
93 | 93 |
} |
94 | 94 |
|
95 |
goto &text_value; # text, textfield and select |
|
95 |
goto &text_value; # text, textfield, htmlfield and select
|
|
96 | 96 |
} |
97 | 97 |
|
98 | 98 |
sub value_as_text { |
... | ... | |
116 | 116 |
return $object ? $object->displayable_name : ''; |
117 | 117 |
} |
118 | 118 |
|
119 |
goto &text_value; # text, textfield and select |
|
119 |
goto &text_value; # text, textfield, htmlfield and select
|
|
120 | 120 |
} |
121 | 121 |
|
122 | 122 |
sub is_valid { |
Auch abrufbar als: Unified diff
Benutzerdef. Var. als HTML-Feld: allgemeine Infrastruktur