- Issue created by @Ok4p1
- ๐ฌ๐งUnited Kingdom Ok4p1 Glasgow
I have added a MR to conditionally hide the save fields.
- ๐ฎ๐ณIndia vinodhini.e chennai
Hi @ok4p1,
Hi,
Thanks for the patch! I tested this on a local Drupal 11 site with Preview Link v2.2.0-alpha2, but unfortunately, itโs not working as expected.
Steps to replicate:
Added an Entity Reference field to a content type.Set "Number of values" to 1 (single entity reference).
Applied the patch from this MR and cleared cache.
Edited a node of that content type.
Expected: "Save" and "Save and regenerate preview link" buttons should be hidden.
Actual: Both buttons are still visible. - ๐ฌ๐งUnited Kingdom Ok4p1 Glasgow
Hello vinodhini.e, that's not the way to get this ticket tested.
The module has a setting to let preview links reference multiple entities under "/admin/config/content/preview_link", that is what you need to enable / disable.
- ๐ฎ๐ณIndia vinodhini.e chennai
Hello @ok4p1,
Thank you for the explanation.
I have tested this scenario, and it is working as expected.
Marking the issue as RTBC. Thanks.