Instruction store:// does not work on sets
Heyhey!
While using the store:// instruction on the knowledge base we realized that there is a bug when it's being used within a set
2 exemples to illustrate, one that works, one that doesn't:
Does not work:
solid-form#change_status_request(
no-render
bind-resources
partial
fields='group(status, reviewer)'
value-status = "validated"
value-reviewer='store://user.@id'
widget-group= "solid-form-hidden"
submit-button =`${data.ArchivethisRequest}`
next="contributor-resource-list"
)
Displayed value : http://localhost:8000/users/balessan/
Wanted value: {"@id":"http://localhost:8000/users/balessan/"}
Works:
solid-form#change_status_request(
no-render
bind-resources
partial
fields='status, reviewer'
value-status = "validated"
value-reviewer='store://user.@id'
widget-status = "solid-form-hidden"
widget-reviewer = "solid-form-hidden"
submit-button =`${data.ArchivethisRequest}`
next="contributor-resource-list"
)
Displayed value: {"@id":"http://localhost:8000/users/balessan/"}
By removing the set group() the instruction store:// works fine
I made a jsbin of the non-functional version that is available here but it doesn't not really show the error as we need to be able to get the logged in user's info