[BUG]: Admin Field relation concatenate/glue not working correctly. #1294

Closed
opened 2026-03-10 00:16:58 +00:00 by Tom van der Laan · 6 comments
Member

What Happened?

The concatenate/glue option seems broken. it adds the values twice, and in some settings mixing it even adds php code in too.

i've added two screenshots of settings with output in the list view in the blue box.

Steps to reproduce the Bug

create list view, and do a admin field relation with settings like in the screenshots.

Which Joomla version are you compiling in?

6.0.3

Which PHP version are you compiling in?

8.3

Which Joomla versions are you targeting?

6

Which PHP version are you targeting?

8.3

Which Web server is JCB running on?

apache 2.4

Which Relational Database is JCB running on?

mariadb 10.x

Which OS is JCB running on?

centos 7

Which JCB version are you using?

6.1.5-beta1

Where in JCB did this issue occur?

Compilation of a component, Admin Views(admin_views)

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? The concatenate/glue option seems broken. it adds the values twice, and in some settings mixing it even adds php code in too. i've added two screenshots of settings with output in the list view in the blue box. ### Steps to reproduce the Bug create list view, and do a admin field relation with settings like in the screenshots. ### Which Joomla version are you compiling in? 6.0.3 ### Which PHP version are you compiling in? 8.3 ### Which Joomla versions are you targeting? 6 ### Which PHP version are you targeting? 8.3 ### Which Web server is JCB running on? apache 2.4 ### Which Relational Database is JCB running on? mariadb 10.x ### Which OS is JCB running on? centos 7 ### Which JCB version are you using? 6.1.5-beta1 ### Where in JCB did this issue occur? Compilation of a component, Admin Views(admin_views) ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
Tom van der Laan added the Bug label 2026-03-10 00:16:58 +00:00
Robot referenced this issue from a commit 2026-03-12 15:34:49 +00:00
Owner

@TLWebdesign, Once again, thank you for reporting this issue.

While debugging it, we discovered an opportunity to refactor a part of the compiler, which allowed us to improve the overall implementation as well. The fix for this issue is included in the latest release v6.1.5-beta2.

Please try the beta release and let us know if the problem is resolved on your side. Your feedback will help us confirm the fix so that we can close this issue.

Thanks again for taking the time to report and test this.

@TLWebdesign, Once again, thank you for reporting this issue. While debugging it, we discovered an opportunity to refactor a part of the compiler, which allowed us to improve the overall implementation as well. The fix for this issue is included in the latest release [v6.1.5-beta2](https://github.com/joomengine/pkg-component-builder/archive/refs/heads/6.x.zip). Please try the beta release and let us know if the problem is resolved on your side. Your feedback will help us confirm the fix so that we can close this issue. Thanks again for taking the time to report and test this.
Author
Member

i can confirm this fixed the issues. I have one suggestion tho. It looks like there is a hard coded "space" after the first field. Is that correct? I would not hard code a prefixed space after the first field. This hurts flexibility where i would not want a space.

See attached screenshot. There is a space before the 12 (house number).

i can confirm this fixed the issues. I have one suggestion tho. It looks like there is a hard coded "space" after the first field. Is that correct? I would not hard code a prefixed space after the first field. This hurts flexibility where i would not want a space. See attached screenshot. There is a space before the 12 (house number).
Owner

@TLWebdesign is this what you're talking about?
image.png
image.png

So when I remove that space there this is the result:
image.png

When I choose View for Concatenate/Glue I get this:
image.png

I'll need more details with regards to your setup since I'm not getting this same issue.

@TLWebdesign is this what you're talking about? ![image.png](https://git.vdm.dev/attachments/44a22cd7-47a1-485a-a9c8-673988854535) ![image.png](https://git.vdm.dev/attachments/e8f5b34e-2816-4c3e-9e22-a80e57dc409e) So when I remove that space there this is the result: ![image.png](https://git.vdm.dev/attachments/affc2506-56e0-492d-bce9-6385761633de) When I choose `View` for Concatenate/Glue I get this: ![image.png](https://git.vdm.dev/attachments/765a0f6c-1cef-4f1f-a6fb-a7987e3082af) I'll need more details with regards to your setup since I'm not getting this same issue.
Author
Member

no if you leave glue empty it still adds a space in between where i would expect there to be no space. My guess is if glue is empty it defaults to a space?

no if you leave glue empty it still adds a space in between where i would expect there to be no space. My guess is if glue is empty it defaults to a space?
Owner

@TLWebdesign we've added a trim to the Output if nothing is set in the Concatenate/Glue Options:

$fieldArray[] = trim($fieldOutput);

and so the white-spaces is now correctly removed.

This change is available in JCB beta3.

image.png

@TLWebdesign we've added a `trim` to the Output if nothing is set in the Concatenate/Glue Options: ``` $fieldArray[] = trim($fieldOutput); ``` and so the white-spaces is now correctly removed. This change is available in [JCB beta3](https://github.com/joomengine/pkg-component-builder/archive/refs/heads/6.x.zip). ![image.png](https://git.vdm.dev/attachments/a5fdf90c-b023-449d-870c-5be276ed58ce)
Author
Member

Awesome 👍

Awesome 👍
Robot referenced this issue from a commit 2026-03-24 13:48:12 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1294