[Jifty-commit] r2683 - in Jifty-DBI/trunk: lib/Jifty/DBI
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sun Jan 28 08:45:19 EST 2007
Author: jesse
Date: Sun Jan 28 08:45:19 2007
New Revision: 2683
Modified:
Jifty-DBI/trunk/ (props changed)
Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm
Log:
r21614 at hualien: jesse | 2007-01-28 21:44:54 +0800
* Better handle the case when a model has no columns and we call ->columns on it.
Modified: Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm
==============================================================================
--- Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm (original)
+++ Jifty-DBI/trunk/lib/Jifty/DBI/Record.pm Sun Jan 28 08:45:19 2007
@@ -407,7 +407,7 @@
<=> ( ( $a->type || '' ) eq 'serial' ) )
or ( ($a->sort_order || 0) <=> ($b->sort_order || 0))
or ( $a->name cmp $b->name )
- } values %{ $self->COLUMNS }
+ } values %{ $self->COLUMNS || {} }
])}
More information about the Jifty-commit
mailing list