alphagov/govuk_content_models — pull request #110 by JordanHatch (2014-01-13 16:07:13+00:00)
Title: Don't change the slug during validation

As the slug for an artefact was being passed as a reference into the slug validator, slugs for detailed guides were being changed during validation when we replaced any double dashes with a single dash.

This makes sure that, when we pass the slug directly into the validator, we clone it so that any changes don't affect the value in the Artefact.