AnsweredAssumed Answered

Custom Action Problem in Sugar 7

Question asked by Haroon Khaleeq on Oct 27, 2014
Latest reply on Apr 13, 2016 by Mary Warner
Hi Everyone,

Well, The problem is not with the ajax or json. It seems that sugar does not identify this url because it does not comes in the action file for the first time when i open my instance or after restarting my browser:
(ajax url)
url: "index.php?module=Leads&action=getphonept&sugar_body_only=true",

But when i repair and rebuild it hits the action file and works normal and fine.
Then if i logout or close browser and login again and try to open target page then same issue happens....It does not go in to action file and instead returns this script....

==============================================
<script>            

if (parent.location == window.location) 
{
                window.location = "http:\/\/localhost\/imerge\/#Leads";
}else
{
               window.top.SUGAR.App.bwc.login("index.php? module=Leads&action=getphonept&sugar_body_only=true&id=501d59fd-caaa-e57c-3270-5447a7b25788");
            
}

</script>
================================================
otherwise when it runs it return json objects.








Is it a bug or a problem from my side..??
I am using SugarCRM Professional, Version 7.2.2.0 (Build 1118)

Outcomes