Skip to content

Commit

Permalink
Merge pull request #388 from KumbiaPHP/fix-value-null
Browse files Browse the repository at this point in the history
Cast $value to string
  • Loading branch information
joanhey committed Feb 14, 2024
2 parents d4cf489 + 945260f commit 10159c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/extensions/helpers/form.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ protected static function tag($tag, $field, $attrs = '', $value = '', $extra = '
// Obtiene name, id y value (solo para autoload) para el campo y los carga en el scope
[$id, $name, $value] = self::getFieldData($field, $value);

return str_replace('{{value}}', $value, "<$tag id=\"$id\" name=\"$name\" $extra $attrs $end");
return str_replace('{{value}}', (string) $value, "<$tag id=\"$id\" name=\"$name\" $extra $attrs $end");
}

/*
Expand Down

0 comments on commit 10159c1

Please sign in to comment.