formulize
formulize copied to clipboard
One to One links should only be written if there is not an existing entry with the same values
If the developer has manually created the matching one-to-one entry already for some reason, the one to one code that writes entries automatically, should not write a duplicate entry. But we don't check whether there's an entry already in the DB, we just check if we wrote one through the normal writing process (by checking the GLOBALS list of written entries). If someone used the API to write the entry directly, then the one to one process would write a duplicate. So we should check for an entry that has the matching values before we write it, to avoid creating duplicates.
Lower priority