Layout Change Bug

Permalink Browser Info Environment
Found an error that occurs when a page layout is changed when a Formify form is on the page (see attached screen shot).

To fix this for now I've done the following:

/packages/formify/src/FormifyField.php

Line 132

if( $field->defaultValueSource && $field->defaultValueSource != 'static') {
    $defaultValueSource = $field->defaultValueSource;
    $u = new User();
    if($u->isLoggedIn()) {
        $ui = UserInfo::getByID($u->getUserID());
        $field->defaultValue = $ui->getAttribute($defaultValueSource);
    }
}

1 Attachment

Type: Ticket
Status: New
View Replies:

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.1
Version Installed - 5.7.5.1
Database Version - 20150713000000

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.93 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.