SAN JOSE, Costa Rica — At least 50 mothers sat down in a mall’s fast food area and breast-fed infants for nearly two hours Saturday, protesting over the shopping center forcing a woman to stop nursing her daughter a week earlier.

The action by Lincoln Square set off a furor on Costa Rican social media and even prompted a statement from the president — a reaction that seemed to shock the mall’s management, which quickly apologized for the incident and announced that breast-feeding would be allowed anywhere in the shopping center.

One of the mothers at the rally traveled a hundred miles from Turrialba to the mall in Costa Rica’s capital, San Jose.