/***[INSERTED$$$$]***/ duplicate entry when compiling #1220
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
I have inserted existing code with
/***[INSERTED<>$$$$]***//*x*/
in a new file.I compiled the project and the installed project uninstalled.
The custom code is correctly recognized and saved.
After compiling the project again, the code is inserted twice.
I have tested this with PHP 8.1.25 as well as with PHP 8.2
Actual result
/***[INSERTED$$$$]***//**3**/
if ($MailsContracts)
{
$taskname = substr($name,0,-1);
$task = '&task='.$taskname.'.edit&id=1';
}
/***[/INSERTED$$$$]***/
/***[INSERTED$$$$]***//**3**/
if ($MailsContracts)
{
$taskname = substr($name,0,-1);
$task = '&task='.$taskname.'.edit&id=1';
}
/***[/INSERTED$$$$]***/
System information (as much as possible)
Additional comments
I did another test.
I wanted to reimplement the code using
/***[/INSERT<>$$$$]***/
.The code was entered twice in the custom codes.
Please have a look at this tutorial on Custom Code Insertion.
It seems that there is a misunderstanding on how you add the
/***[INSERT<>$$$$]***/
so that JCB will handle it correctly.Hopefully this will help you get these custom codes to make your life easier. 😄
This is an old tutorial, and I know it.
My "Actual result" is what JCB writes into.
Thanks
I have not yet been able to duplicate this.
Hi Llewellyn
Thank you for your answer. This is very interesting.
I have now tested it with Mozilla Firefox and the problem does not exist. I don't understand why.
There must be something related to Chromium. But what and why.
kind regards
@Joomla_Chris yep, that's the problem, use Firefox only when you work with JCB.