Skip to content

Templating with task.resolver_username not working correctly #451

@rbeuque74

Description

@rbeuque74

Describe the bug
Templating with .task.resolver_username not working correctly with templating function.
resolver_username is a *string pointer and giving a pointer to templating function such as toString is returning a pointer value instead of the actual string.

Expected behavior
We should de-reference the pointer here :

v.m[TaskKey] = t

And give a plain string value every time a string pointer is included into the values. As the task is only Golang model that we are including in the values, we should check at all the keys here.

utask version impacted by the bug
All

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions