Skip to content

class EditableFormField_InitialVisibility using deprecated session call #2

Description

@ashpik

session::get is now deprecated.

Correct way to access a session is:

$request = Injector::inst()->get(HTTPRequest::class);
$session = $request->getSession();
$value = $session->get('FormInfo.BetterUserForm_Form.data.' . $conditionFieldName);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions