As Chris Cudmore states in his comment, it is most likely a leveling issue (the other, but less likely cause could be misaligned hinges).

Place a level across the top of the front of the unit.  Note whether it is level or not. Then do the same across the top of one of the sides.

If the unit is tipped, but only front to back (the front test was level), you should try to raise both of the legs on the low side. Any solid lift that fits under the leg base will do, but the simplist approach is usually small plastic [wedges][1].

![wedge][2]

Similarly, if the unit is only tipped to one side (front test shows slant, but side test does not), wedge both legs on the short side.

If there is a tilt both side to side and front to back, try wedging *just* the lowest corner. Then add additional wedges as needed. You might need three, but not four.

Keep testing in both directions until the unit is level all around. Check the door again.  It is likely that both doors may swing only when pushed.


P.S. The reason only one door swings shut now is probably because the swinging door is actually *falling* toward the low side.  The opposite door is already on the low side when it is opened. Minor differences in hinge tension may make one more likely to swing than the other, but the first line of defense is to eliminate the reason for the swing rather than suppressing the ability to swing.

If this does not cure it, you may have a hinge problem, which is another answer altogether.

SUPPLEMENT: On many more recently manufactured furniture, there are often built in levelers that avoid the need for wedges.
 
![levelers][3]

These are threaded pads set into the bottoms of the legs of furniture. You raise the height of the corner by twisting clockwise (when looking from the top). If you have them, use them. 

Also, once you determine the height to raise a corner, you may be able substitute rubber furniture cups, if the plastic wedges seem too slippery. These will work if the height is about the amount that you have determined you need using the wedge (or if they can be trimmed to make it right).

![rubber cup][4]


  [1]: http://www.homedepot.com/h_d1/N-5yc1v/R-100180016/h_d2/ProductDisplay?catalogId=10053&langId=-1&keyword=furniture%20wedge&storeId=10051
  [2]: https://i.sstatic.net/eydnv.jpg
  [3]: https://i.sstatic.net/Av8pe.jpg
  [4]: https://i.sstatic.net/Qb5Th.jpg