Thank you for the report. I have checked out the ruleset code and it looks like the trim is performed deeper in Core. So I will take a look at what needs to be changed and if find a solution, submit an update to that layer.Quote:
fgu sfrpg 2.1.9, core 3.3.12
attached is sf.zip, which includes a campaign and 3 images.
i had an issue distributing party sheet items.
the campaign is pre-setup for you to open the part sheet tab, swap to inventory and press the 'down' arrow to award the items. (a.png)
after pressing the award, you will see a '[WARNING] Unable to transfer item to character. (Battery) (D'errik D'essania Du D'point )' (b.png)
after pressing the award a second time, the item is correctly awarded.. (c.png)
The issue is because 'D'errik D'essania Du D'point ' has a trailing space on the end of his character sheet name, and when you set this name in the middle of a group of other names in the 'assignment' box by typing the first letter of the name and a ',' to fill out the name to add extra players.... You can see the space between 'D'point ,Larr' in (a.png)
When the award items button is pressed it must 'split' the names out by ',' search and which probably 'trim's the space from the name in the process... and then it can not exact 'match' with the character name that still has the space on the end.
I suspect after the first award, the remaining assignment box now with 1 player name still has the 'space' on the end, and so it then matches the players name with the space and correctly applies the item.
So a case of a missing 'trim' on the player name during the 'match' name for assignment.. ie splitting the assignment string gets a trim but the match to player name does not get a trim..
Yes I can correct the name of the player, but clearly 'odd' spaces between ',' sections get a trim, either player name assignment/edit should 'trim' on value change... or the name compare on assignment should get a trim.
thanks, Pete
looking in the db.xml after first assignment, the list clearly still has the 'space' on the end of the name..
<treasureparcelitemlist>
<public />
<id-00001>
<public />
<assign type="string">D'errik D'essania Du D'point </assign>