In a semmi-quasi local domain $D$ ( i.e. $D$ has finitely many maximal ideals),
an ideal $I$ is principal if and only if $ID_M$ is principal for all $M \in Max(D)$.
[See Comm. Rings by Kaplansky, (Theorem 60,61,62)
Is the result above could be true for a domain $D$ which is not a PID and having infinitely many maximal ideals?
In other words, Can we replace the semi-quasi-local condition with some other/weaker condition in above mentioned result?