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_
@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.
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).
So when I remove that space there this is the result:
When I choose View for Concatenate/Glue I get this:
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?


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

When I choose `View` for Concatenate/Glue I get this:

I'll need more details with regards to your setup since I'm not getting this same issue.
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?
@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).

Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
@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.
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).
@TLWebdesign is this what you're talking about?


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

When I choose

Viewfor Concatenate/Glue I get this:I'll need more details with regards to your setup since I'm not getting this same issue.
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?
@TLWebdesign we've added a
trimto the Output if nothing is set in the Concatenate/Glue Options:and so the white-spaces is now correctly removed.
This change is available in JCB beta3.
Awesome 👍