Merge pull request #11596 from snipe/fixes/unique_undeleted_for_custom_fields

Use unique_undeleted instead of unique for custom fields
This commit is contained in:
snipe 2022-08-02 17:16:12 -07:00 committed by GitHub
commit 71facb1850
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,7 +87,7 @@ class CustomFieldset extends Model
}
if ($field->is_unique == '1') {
$rule[] = 'unique';
$rule[] = 'unique_undeleted';
}
array_push($rule, $field->attributes['format']);