Merge pull request #17456 from spencerrlongg/9511-validation-always-fails-on-encrypted-custom-fields

Fixed #9511 - Validation For Encrypted Custom Fields
This commit is contained in:
snipe
2025-08-05 17:45:38 +01:00
committed by GitHub
17 changed files with 476 additions and 23 deletions

View File

@@ -93,6 +93,42 @@ class CustomFieldFactory extends Factory
});
}
public function encrypt()
{
return $this->state(function () {
return [
'field_encrypted' => '1',
];
});
}
public function alpha()
{
return $this->state(function () {
return [
'format' => 'alpha',
];
});
}
public function numeric()
{
return $this->state(function () {
return [
'format' => 'numeric',
];
});
}
public function email()
{
return $this->state(function () {
return [
'format' => 'email',
];
});
}
public function testCheckbox()
{
return $this->state(function () {