Fixed a bug where the source and destination account could be the same one.

This commit is contained in:
James Cole
2015-06-08 18:40:52 +02:00
parent 657d16bb60
commit f81a475cc9

View File

@@ -315,7 +315,7 @@ class TransactionJournal extends Model
{
$cache = new CacheProperties;
$cache->addProperty($this->id);
$cache->addProperty('destinationAccount');
$cache->addProperty('sourceAccount');
if ($cache->has()) {
return $cache->get(); // @codeCoverageIgnore
}