The union representing prison employees says recent assaults on inmates and staff were the result of a law that curtails the use of solitary confinement and provides minimum recreation time for prisoners.