When I submit a new created validation, I get the php error "Call to a member function validateConfigurationForm() on null". This error is thrown because the property fieldValidationRule in class FieldValidationRuleFormBase isn't populated on form submit. On submit the buildForm method isn't called, because the form array is retrieved from cache. I will upload a patch to populate them on validation.

Comments

cgoffin created an issue. See original summary.

cgoffin’s picture

Attached the patch to fix the bug in adding a new validation.

texas-bronius’s picture

Status: Active » Needs review

Confirming issue and that the patch added in #2 worked for me.

strozx’s picture

Hi, I tried to reproduce the issue but wasn't successful. Maybe this was already fixed in another release?

Regards!

nace_fr’s picture

I have also tried to reproduce this one, but there were no errors when creating rules and everything seems to be working fine. Logs are also clear. Maybe there are some special steps to reproduce this?

g089h515r806’s picture

Status: Needs review » Postponed (maintainer needs more info)

I could not reproduce this issue.

dc-kinoshita’s picture

I had the same error with 1.0alpha version but after updating to 1.0beta it seems to work fine.

g089h515r806’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)