alkemann/CakePHP-Assets — pull request #16 by stefanomanfredini (2012-05-16 08:49:27+00:00)
Title: If the user only removes some habtm relations, afterSave doesn't detect the changes...

( when $created == false) and keeps the old Ids. Just a suggested little patch:
$id_changes = am(array_diff($currentIds,$oldIds),array_diff($oldIds,$currentIds));
intead of $id_changes = array_diff($currentIds,$oldIds);