Thanks to visit codestin.com
Credit goes to github.com

Skip to content

default_user_state = 0 not supported #523

@Gounlaf

Description

@Gounlaf

Hi,
I tried to set default_user_state = 0, but it's make state = null in database

I think the cause is : ZfcUser/Service/User.php ; line 91 to 96

// If user state is enabled, set the default state value
if ($this->getOptions()->getEnableUserState()) {
     if ($this->getOptions()->getDefaultUserState()) {
        $user->setState($this->getOptions()->getDefaultUserState());
    }
}

Line 93 ($this->getOptions()->getDefaultUserState()) doesn't work with null/0 value

Am I wrong ?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions