Let $R$ be a ring and let $M$ and $N$ be $R$-modules with submodules $L$ and $P$, respectively. Assume we know $M \cong N$ as $R$-modules. Further, suppose we are given an isomorphism
$$\psi: L \to P$$
When is it true that there exists an isomorphism $\phi: M \to N$ such that $\forall m \in L$ we have
$$\phi(m)=\psi(m).$$
One instance where this holds is when there exist direct sum decompositions $M=L \oplus L'$ and $N=P \oplus P'$, i.e. when $L$ and $P$ are direct summands of their respective modules.
Is this condition actually necessary for the two isomorphisms to agree, or are there some more general conditions under which this property holds?