comanage-dev - [comanage-dev] r310 - registry/trunk/app/Model
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r310 - registry/trunk/app/Model
- Date: Sat, 14 Jul 2012 22:09:28 -0400
Author: benno
Date: 2012-07-14 22:09:28 -0400 (Sat, 14 Jul 2012)
New Revision: 310
Modified:
registry/trunk/app/Model/CoPetitionHistoryRecord.php
Log:
Handle multiple calls to CoPetitionHistoryRecord:record
Modified: registry/trunk/app/Model/CoPetitionHistoryRecord.php
===================================================================
--- registry/trunk/app/Model/CoPetitionHistoryRecord.php 2012-07-12
18:06:48 UTC (rev 309)
+++ registry/trunk/app/Model/CoPetitionHistoryRecord.php 2012-07-15
02:09:28 UTC (rev 310)
@@ -85,6 +85,9 @@
}
}
+ // Call create since we might have multiple history records written in a
transaction
+ $this->create($coPetitionHistoryData);
+
if(!$this->save($coPetitionHistoryData)) {
throw new RuntimeException(_txt('er.db.save'));
}
- [comanage-dev] r310 - registry/trunk/app/Model, svnlog, 07/14/2012
Archive powered by MHonArc 2.6.16.