Jennifer Lopez and her former husband have reached an agreement banning him from publishing intimate details about his life with the singer.
Lopez and her ex-spouse were urged to settle the case privately
Ojani Noa, Lopez's first husband, will also be barred from "criticising or denigrating" the star until a permanent settlement is reached.
If the pair fail to reach a settlement, a non-jury trial will be held to decide if the injunction becomes permanent.
Lopez sued Noa in April over plans to publish a book about their marriage.
The singer and actress claimed it would violate a previous agreement which banned them from revealing private details about one another for monetary gain and criticising one another publicly.
A newspaper article in January claimed the book would carry allegations about Lopez's private life.
The 36-year-old was married to Cuban-born Noa - her first husband - for less than a year before they divorced in 1998.
The court order, which was signed by a judge at Los Angeles Superior Court, led to the cancellation of a hearing for the case.
It urged both sides to resolve their dispute "without engaging in further litigation".
Noa is barred from circulating a manuscript of his book, and retrieving any materials from other parties and banning them from passing on the information.
Earlier this week, a second man admitted to stealing Lopez's video of her 2004 wedding with singer Marc Anthony, which was in a laptop computer when Anthony's car was stolen.