CRM-20958 - Case, Activity BAOs - Watch out for saving stale timestamps
authorTim Otten <totten@civicrm.org>
Fri, 28 Jul 2017 04:10:30 +0000 (21:10 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 6 Sep 2017 17:41:02 +0000 (10:41 -0700)
commitea6a17a90e231f4347c5bb5044f8dcf3500b7d70
tree36797ad824e409f7a75783b491c9b40006030034
parent2c6b0b4b53c5656d161a02f36ee7c40b1ca9150f
CRM-20958 - Case, Activity BAOs - Watch out for saving stale timestamps

There appears to be some application logic which follows a process like this:

 1. Read the case
 2. Tweak the data
 3. Save updated case

The problem is comes if step #4 resaves a timestamp loaded in step #1, which
is fairly likely to happen if you read+save the same record.

This was specifically observed on the "Manage Case" screen when editing
activities, but the data-flow is pretty common, so make a general fix to the
BAO.
CRM/Activity/BAO/Activity.php
CRM/Case/BAO/Case.php