summaryrefslogtreecommitdiff
path: root/FS/FS/Record.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-01-08 09:05:55 -0800
committerIvan Kohler <ivan@freeside.biz>2015-01-08 09:05:55 -0800
commitad53c8a887998e8054f0b26eea5878e6c9520685 (patch)
tree548cc3c9ef351abc318f31a8032b1bb1c7f7ab7c /FS/FS/Record.pm
parent99e332001fc0a3483bc999d51f5e01ed2efec5f6 (diff)
ut_foreign_key still requires a value in v4 though, RT#13971
Diffstat (limited to 'FS/FS/Record.pm')
-rw-r--r--FS/FS/Record.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 765880e..781230f 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -3093,7 +3093,7 @@ on the column first.
sub ut_foreign_key {
my( $self, $field, $table, $foreign ) = @_;
- return '' if $no_check_foreign;
+ return $self->ut_number($field) if $no_check_foreign;
qsearchs($table, { $foreign => $self->getfield($field) })
or return "Can't find ". $self->table. ".$field ". $self->getfield($field).
" in $table.$foreign";