refactor: remove diagnostic and translation scripts and implement automatic cache clearing for settings in the model.
This commit is contained in:
@@ -24,7 +24,12 @@ class EditSetting extends EditRecord
|
||||
|
||||
if (isset($data['type'])) {
|
||||
$type = $data['type'];
|
||||
$virtualField = 'value_' . $type;
|
||||
|
||||
// Map the setting type to the form field name
|
||||
$virtualField = match ($type) {
|
||||
'string', 'text', 'json', 'integer', 'float' => 'value_text',
|
||||
default => 'value_' . $type,
|
||||
};
|
||||
|
||||
try {
|
||||
// Model accessor'ını kullanarak değeri al
|
||||
|
||||
Reference in New Issue
Block a user