projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3b19e91
)
make ut_textn analogous to ut_text
author
jeff
<jeff>
Fri, 13 Aug 2010 05:51:25 +0000
(
05:51
+0000)
committer
jeff
<jeff>
Fri, 13 Aug 2010 05:51:25 +0000
(
05:51
+0000)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
758e0f9
..
ab4ea2a
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-2178,11
+2178,8
@@
May be null. If there is an error, returns the error, otherwise returns false.
sub ut_textn {
my($self,$field)=@_;
sub ut_textn {
my($self,$field)=@_;
- $self->getfield($field)
- =~ /^([\w \!\@\#\$\%\&\(\)\-\+\;\:\'\"\,\.\?\/\=\[\]]*)$/
- or return gettext('illegal_text'). " $field: ". $self->getfield($field);
- $self->setfield($field,$1);
- '';
+ return $self->setfield($field, '') if $self-getfield($field) =~ /^$/;
+ $self->ut_text($field);
}
=item ut_alpha COLUMN
}
=item ut_alpha COLUMN