Skip to content

Is "sourcemodel eav/entity_attribute_source_boolean not allowed for frontend input type: boolean" a valid EAV model check issue? #50

@loekvangool

Description

@loekvangool

I'm hit with this error:

sourcemodel eav/entity_attribute_source_boolean not allowed for frontend input type: boolean - the frontend input type should be select

Triggered by:

if ($sourceModel != '' && ! in_array($attribute->getFrontendInput(), $sourceModelsAllowed)) {
    $additionalMessage = null;
    if($attribute->getSourceModel() == 'eav/entity_attribute_source_boolean' && $attribute->getFrontendInput() != 'select') {
        $additionalMessage = ' - the frontend input type should be select';
    }
    $error .= '<error>sourcemodel ' . $attribute->getSourceModel() . ' not allowed for frontend input type: ' . $attribute->getFrontendInput() . $additionalMessage . '</error>';
}

However, this error applies to any boolean attribute created by vanilla Magento 1.9 / OpenMage 19. Also it seems to functionally work fine. Are we sure this is an actual problem?

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