Agatha Christie's famous crime story And Then There Were None was written both as a book and later as a play by Christie herself. However, when adapting her own story for the stage, she made a significant change to the ending, namely ...
Warning: major spoilers follow!
... in the book, every single one of the ten people on the island ends up being killed, even the true mastermind behind it all; while the play has a happier ending, in which Vera Claythorne and Philip Lombard are innocent and manage to escape the island together.
The Wikipedia page for the play (cited to Christie's autobiography, which I didn't find online) says:
She knew the ending would have to be changed as all of the characters die in the book and therefore "I must make two of the characters innocent, to be reunited at the end and come safe out of the ordeal."
In contrast, other stage versions of the story (including one from 1944, only a year after Christie's own play) have preserved the book's dismal ending.
Why did Christie change her play's ending from the novel's? Was she afraid that nobody would like a story in which all the main characters die - and if so, why did such qualms apply to the play more than to the original novel?