chg: [internal] Remove unused validation rule

pull/7851/head
Jakub Onderka 2021-10-17 14:21:18 +02:00
parent 3b69b528cc
commit a1c22e9fe5
1 changed files with 0 additions and 13 deletions

View File

@ -1951,19 +1951,6 @@ class AppModel extends Model
return true;
}
public function valueIsJsonOrNull($value)
{
$field = array_keys($value);
$field = $field[0];
if (!is_null($value[$field])) {
$json_decoded = json_decode($value[$field]);
if ($json_decoded === null) {
return __('Invalid JSON.');
}
}
return true;
}
public function valueIsID($value)
{
$field = array_keys($value);