Skip to content

Commit f2c98c0

Browse files
authored
Discard changes to src/Models/CustomFieldOption.php
1 parent 10eed7a commit f2c98c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Models/CustomFieldOption.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected static function boot(): void
5454
}
5555

5656
// Check if encryption is enabled
57-
if ($option->customField?->settings?->encrypted) {
57+
if ($option->customField && $option->customField->settings->encrypted) {
5858
$option->attributes['name'] = Crypt::encryptString($rawName);
5959
}
6060
});

0 commit comments

Comments
 (0)