projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d38d820
)
backwards compatibility if the schema hasn't been updated
author
ivan
<ivan>
Tue, 5 Aug 2003 18:45:11 +0000
(18:45 +0000)
committer
ivan
<ivan>
Tue, 5 Aug 2003 18:45:11 +0000
(18:45 +0000)
FS/FS/Record.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Record.pm
b/FS/FS/Record.pm
index
9d82d94
..
1fe51e0
100644
(file)
--- a/
FS/FS/Record.pm
+++ b/
FS/FS/Record.pm
@@
-1369,12
+1369,14
@@
be exported, and should only be called as an instance or class method.
=cut
sub virtual_fields {
=cut
sub virtual_fields {
- my $s
omething
= shift;
+ my $s
elf
= shift;
my $table;
my $table;
- $table = $s
omething
->table or confess "virtual_fields called on non-table";
+ $table = $s
elf
->table or confess "virtual_fields called on non-table";
confess "Unknown table $table" unless $dbdef->table($table);
confess "Unknown table $table" unless $dbdef->table($table);
+ return () unless $self->dbdef->table('part_virtual_field');
+
# This should be smart enough to cache results.
my $query = 'SELECT name from part_virtual_field ' .
# This should be smart enough to cache results.
my $query = 'SELECT name from part_virtual_field ' .