From what I understand the director wanted to mention a woman that Dumbledore had been interested in at some point in his life and, to J.K. Rowling, this was unacceptable as she knew the character was gay. She's done everything she can to make sure the characters stay true to the story she put forth and I think this was no exception.