alkemann/CakePHP-Assets — pull request #12 by joni (2011-11-22 08:24:27+00:00)
Title: RevisionBehaviour.revertToDate: Check if an associated model has a shadow before trying to use it

Hi,
There's a problem with the revertToDate function: it fails when a revisioned model is associated with models that are not. Checking if the associated model has a ShadowModel before trying to use it fixes the problem.

I've been using the revision behaviour for a long time--solid work!--but yesterday was the first time I had to use the revertToDate function since someone accidentally deleted important data.

Regards,
Joni