On my system, if I add multiple values to "limit" field of custom field edit form ( /admin/structure/ds/fields/manage_custom/field_name ) like:
article|*
blog|*
then the field won't show for "article" content type.
I believe the issue is that when I add new line from my Windows machine in input field, I add \r\n - and the code only "explodes" based on \n character, so \r stays on the end of first line.
Adding trim() fixes this - patch attached in comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ds_field_limit_multiple_bundles-1901128-1.patch | 550 bytes | lklimek |
Comments
Comment #1
lklimek commentedAttached patch against 7.x-2.0 (but based on source code the issue is also the same in 7.x-2. branch)
Comment #2
swentel commentedHmm, there was already patch over at #1823400: Limit field (ui_limit) not parsed correctly regarding this, so that didn't fix it completely ?
Also, make sure comment chars don't exceed over 80.
Comment #3
swentel commentedOk, makes sense anyway, committed and pushed, thanks! Moving to 8.x-2.x
Comment #4
swentel commentedCommitted to 8.x branch