Hey @pgr I didn’t have much luck trying to get the list of entry points from entry_point_registry.php, so instead I went to the custom file that gets created when new entry points are added and searched through there for valid entry point. Then added an exception to the getCustomEntryPoints where the URL matches a valid custom entry point. I added on github so hopefully the original author of this check will chime in.
opened 09:06PM - 01 Sep 23 UTC
<!--- Please be aware that as of the 31st January 2022 we no longer support 7.10… .x.
New issues referring to 7.10.x will only be valid if applicable to 7.12.x and above.
If your issue is still applicable in 7.12.x, please create the issue following the template below -->
#### Issue
I normally create entry points for custom graphs or reports. The entry points are by nature an internal link like:
myurl.com/?entryPoint=myentrypoint
I would use iframe dashlet to insert them on the dashboard. However, (I think in a recent update) this code was added to: /modules/Home/Dashlets/iFrameDashlet/iFrameDashlet.php
`if (isSelfRequest($this->url)) {
$this->url = '';
}`
It will always return true if it is an internal URL like an entry point end then set $this->url to blank!
Then the dashlet won't have a URL and won't work. Not sure why this was added or what it's purpose is, but commenting it out seems to fix the issue.
#### Expected Behavior
create an iframe dashlet
paste in an internal URL (like to an entry point)
And it should render the page inside the dashlet.
#### Actual Behavior
The url is blanked out by the code listed above and only a message:" Incorrect website location is specified" displays
#### Possible Fix
Unless there is a good reason for this remove the 3 lines of code.
#### Steps to Reproduce
1. Create an entry point (or any internal URL)
2. Add a dashlet
3. Add an iFrame dashlet
4. It does not work you get the error message
#### Context
I'm trying to embed iFrame of custom entryPoints, which worked previously.
#### Your Environment
* SuiteCRM Version used: 7.13.3 (working 7.12.11)
* Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Any browser, tested chrome and Edge.
* Environment name and version (e.g. MySQL, PHP 7): PHP 7.4
* Operating System and version (e.g Ubuntu 16.04):
1 Like