Skip to content
  • Robert Lyon's avatar
    Allowing pieform error text to not be escaped if needed (Bug 1239539) · bd33b9c8
    Robert Lyon authored
    
    
    Currently if there is html in an error message used by pieforms it
    escapes the html so the link becomes not usable.
    
    I have made a change where you can tell pieforms not to escape the
    error message.
    
    So instead of using:
    $form->set_error($field, $message);
    
    you can use:
    $form->set_error($field, $message, false);
    
    Where false means do not escape the message.
    
    As the terms and conditions are displayed on the page already I've
    updated the link to jump to the terms section
    
    Change-Id: Ia8650a9f2284fb007cbe81a4a94223f127c4f6cd
    Signed-off-by: default avatarRobert Lyon <robertl@catalyst.net.nz>
    bd33b9c8