Actions
Bug #11619
closedCan't seed locked templates
Description
Something like `ProvisioningTemplate.create(...some stuff..., :locked => true` doesn't work, you have to create it and change the locked value later.
ActiveRecord::RecordInvalid: Validation failed: This template is locked. Please clone it to a new template to customize.
The validation should only validate if the record is persisted.
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2652 added
- Pull request deleted (
)
Updated by Marek Hulán over 9 years ago
- Related to Refactor #11620: Refactor template importing after Foreman allows locked template creation added
Updated by Dominic Cleal over 9 years ago
- Assignee set to Stephen Benjamin
- Translation missing: en.field_release set to 72
Updated by Anonymous over 9 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset bf5f18013ad224a93d917d696d94952965a8968d.
Actions