Regarding the immigration, as long as she takes both passports with her, she should be OK.
With reference to the airline ticket, contact the airline to get them to amend the ticket. When my wife came back earlier this year, I phoned KLM and they made a note on the computer so that when she checked in the booking was in the new passport name.![]()