The preservation of some ring properties by semilattice sums