Skip to content

Commit

Permalink
En las reglas de validación se modifica el tipo de atributo para `new…
Browse files Browse the repository at this point in the history
…_value` a `safe` ya que está generando un error de validación al declararse estricamente de tipo string pero puede estar nulo.
  • Loading branch information
Néstor Acevedo committed Feb 27, 2024
1 parent 7af9bd0 commit 15f589a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion neoacevedo/auditing/models/Auditing.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ public function rules()
return [
[['user_id', 'created_at'], 'integer'],
[['event', 'model', 'attribute'], 'required'],
[['description', 'model', 'attribute', 'old_value', 'new_value', 'action'], 'string', 'max' => 255],
[['description', 'model', 'attribute', 'action'], 'string', 'max' => 255],
[['event', 'ip'], 'string', 'max' => 45],
[['old_value', 'new_value'], 'safe']
];
}

Expand Down

0 comments on commit 15f589a

Please sign in to comment.