mogilvie / EncryptBundle

Encryption bundle
82 stars 27 forks source link

postFlush: Decode whole entities again #9

Closed maps82 closed 4 years ago

maps82 commented 4 years ago

I had a problem when saving entities with a collection of other entities that contain encrypted fields. After flushing the entity the fields of the entities in the collection where not decrypted again in postFlush.

So I made this change that simplifies the code and just calls the decrypt function processFields on the flushed entities again, which solved the problem for me.

maps82 commented 4 years ago

Thanks for the merge. Do you plan to publish an updated version soon?

mogilvie commented 4 years ago

Thank you for contributing. I haven't had a chance to test out the master yet, so haven't published a new version.

mogilvie commented 4 years ago

I'll run tests on a dev app tonight and look to publish tomorrow.