Hi,
after update 7.8.X -> 7.10.22, I am missing a REMOVE button in all subpanels.
I have checked layoutdef files and everything looks fine and correct.
I tried adding extra button, and this works. Looks like some parser is blocking remove button.
Does anyone know where to look next? I can not find where is HTML created for buttons.
Best regards,
Filip
pgr
14 February 2020 14:43
2
Is it in English or a different language? Maybe a problem with the labels?
You can check this by logging in with a user that uses English language.
Any language it is the same.
There is not button on page, source code of page (HTML) doesn’t have button; I am missing
'<ul>'
element for button.
Br,
Filip
pgr
14 February 2020 15:04
4
I think it’s coming from the widgets here
The ones mentioning SubpanelRemove
Have a look in your custom folder, are there any files overriding this?
Hi,
custom folders are all ok. This is fine, but I belive that somewhre else is the probelm; because REMOVE button is not shown, so some parser/template part of code is not showing it.
Only problem is that I can not find code that reads subpaneldef files and constructs HTML for page.
pgr
14 February 2020 15:48
7
The code? It’s simple:
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2018 SalesAgility Ltd.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
This file has been truncated. show original
(hint: I am using irony )
Thank you for help, but irony it is.
I am reading this and I am still nowhere
But I have to go on I need to solve this.
I am comparing this project with other that is working and can not find a single thing different.
Just that my HTML is missing REMOVE button.
Correct
Mine - missing
pgr
17 February 2020 15:49
10
Have you tried setting breakpoints here
<?php
/**
*
* SugarCRM Community Edition is a customer relationship management program developed by
* SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
*
* SuiteCRM is an extension to SugarCRM Community Edition developed by SalesAgility Ltd.
* Copyright (C) 2011 - 2018 SalesAgility Ltd.
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License version 3 as published by the
* Free Software Foundation with the addition of the following permission added
* to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
* IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
* OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
This file has been truncated. show original
to understand the flow of the code? There are several conditions there that could cause the button not to render.
@fcorluka
Could you toss us a screenshot of where the button is missing from. Also let us know weather you have buttons shown within a list or next to each other (Option set within system settings)
There was a bug at one point that was fixed recently, would have assumed that it was within 22 but potentially not
I have tried to brakepoint in this file, but nothing happend.
Remove button is missing in every subpanel in every module.
HTML code above shows inspect of Edit button.
Ok, @fcorluka , ill ask you to re-read my comment, primarily the second part which says:
I’m asking for the screenshot as it will allow me to confirm if the issue that you are currently seeing is the same I’m thinking of.