mobility icon indicating copy to clipboard operation
mobility copied to clipboard

#569: Don't create empty translations on read

Open dorner opened this issue 1 year ago • 2 comments

Fixes #569 .

This ended up being simpler than I expected. I simply added a for_read parameter that's only set on read, which would return an isolated translation object instead of one attached to the translations collection. This leaves the cache intact as well.

dorner avatar Jan 13 '25 15:01 dorner

Hmm... might not be as simple. In this case if you first do a read, it'll cache the read as the isolated record. Then subsequent writes will go to the isolated record instead of the built one, and they won't save. Let me try to fix.

dorner avatar Jan 13 '25 15:01 dorner

Should be fixed now!

dorner avatar Jan 13 '25 18:01 dorner