When editing a Commerce Payment gateway without having a workflow with a Validation step, a warning is produced by this module. That message contains a link to the workflow configuration, but given to the t-function as a Link-object instead of string. This results in a warning regarding htmlspecialchars() expects parameter 1 to be string, object given.

The patch included fixes this problem by generating the string before assigning it as a replacement for the translation.

Comments

LammensJ created an issue. See original summary.

ndf’s picture

Status: Needs review » Reviewed & tested by the community

Looks good thanks LammensJ

  • ndf committed 415693d on 8.x-1.x
    #3043398 by LammensJ: String translation replacements must be strings
    
ndf’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.