A dishwasher detergent containing a builder and one or more magnesium
and/or zinc salt(s) of at least one monomeric and/or polymeric organic
acid, excluding zinc ricinoleate, zinc abietate, and zinc oxalate. A
method of inhibiting glass corrosion by treatment with one or more salts
of magnesium and/or zinc with organic acids, excluding formic acid,
acetic acid, gluconic acid, and oxalic acid.