[freeside-commits] freeside/FS/FS Record.pm,1.208,1.209
Jeff Finucane,420,,
jeff at wavetail.420.am
Thu Aug 12 22:51:28 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv22735
Modified Files:
Record.pm
Log Message:
make ut_textn analogous to ut_text
Index: Record.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Record.pm,v
retrieving revision 1.208
retrieving revision 1.209
diff -u -w -d -r1.208 -r1.209
--- Record.pm 9 Aug 2010 01:03:49 -0000 1.208
+++ Record.pm 13 Aug 2010 05:51:25 -0000 1.209
@@ -2178,11 +2178,8 @@
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
More information about the freeside-commits
mailing list