Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Async Relationships validation blocks the save buttton

Status Resolved
Add-on / Version Bloqs 5.0.10
Severity
EE Version 6.4.13

Eric Swierczek

Jul 07, 2023

When I have a bloq with a relationship field with a minimum number of related entries, the validation on that fields can sometimes put the entry into an unsaveable state. The most straightforward test is to create a single bloq with a single relationship field with a “minimum number of related entries” configured (attached image).

Then on the entry, add a couple related entries to this field. We can see that anything less than 2 triggers the async validation, which seems to work so far (attached image).

Now, add a third entry here so the on-page validation passes, and then quickly delete one and click Save before the async validation marks this field as invalid again. The easiest way to do this might be to make your browser window short so the Delete icon is right under the Save button so you can click them quickly (attached image). If you triggered it correctly, then on page load you’ll have the standard EE error about the entry not saving correctly (attached image).

Finally, add another entry to this relationship field and the on-page validation should trigger, but the error text in the relationship block will persist and the Save button remains disabled (attached image).

#1

Eric Swierczek

I confirmed that the “Defer field initialization?” setting doesn’t matter here. The bug is experienced whether this is toggled or not.

#2

Eric Swierczek

I also confirmed that this sort of validation works correctly with a native Relationship field, so it does seem specific to a Relationship field in a bloq.

#3

BoldMinded (Brian)

Have/can you try this with EE 7? I just did a quick test and it appears to disable and reenable the Save button correctly. The only issue is the error message doesn’t highlight the actual Relationship field inside the block.

#4

Eric Swierczek

Same issue after upgrading to EE 7.3.5. I’ll add 2 more screenshots to the ticket description showing the result.

#5

Eric Swierczek

Er, I’m at the max number of uploaded images. But I’ve added one showing the final state I get stuck in on the latest EE.

#6

BoldMinded (Brian)

I’m going to close this out b/c last time I tried to replicate this locally I couldn’t, and I’ve yet to see another similar bug report.

Login to reply