Skip to content

tpl: "int" func should handle template.HTML input #3308

@jpap

Description

@jpap

Constructing a string from a string array fails:

$array := "1,3"
$values = split $array ","
$str := delimit (last 1 $values)
$int := int $str

It however can be done using printf which indicates that the above may be a bug:

$array := "1,3"
$values = split $array ","
$str := delimit (last 1 $values)
$int := int (sprintf "%s" $str)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions