[Bps-public-commit] r14473 - in sd/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Thu Jul 24 05:45:21 EDT 2008
Author: sartak
Date: Thu Jul 24 05:45:18 2008
New Revision: 14473
Modified:
sd/trunk/ (props changed)
sd/trunk/lib/App/SD/Record.pm
Log:
r65009 at onn: sartak | 2008-07-24 05:45:12 -0400
Don't try to read the record's properties before it's created, it creates lots of sparks
Modified: sd/trunk/lib/App/SD/Record.pm
==============================================================================
--- sd/trunk/lib/App/SD/Record.pm (original)
+++ sd/trunk/lib/App/SD/Record.pm Thu Jul 24 05:45:18 2008
@@ -28,7 +28,9 @@
my $self = shift;
my %args = validate(@_, { props => 1, errors => 1});
- my $props = $self->get_props;
+ # has the record been created yet? if so, we don't want to try to
+ # get its properties
+ my $props = $self->uuid ? $self->get_props : {};
my $created = $args{props}->{created}
|| $args{props}->{date}
More information about the Bps-public-commit
mailing list