/
var
/
www
/
html
/
sugardemo
/
modules
/
WorkFlowAlertShells
/
Upload File
HOME
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ /********************************************************************************* * Description: ********************************************************************************/ $workflow = BeanFactory::newBean('WorkFlow'); if (isset($_REQUEST['workflow_id']) && isset($_REQUEST['record_id'])) { $alert_shell = BeanFactory::getBean('WorkFlowAlertShells', $_REQUEST['record_id']); $alert_shell->copy($_REQUEST['workflow_id']); $javascript = "<script>window.opener.document.DetailView.action.value = 'DetailView';"; $javascript .= 'window.opener.document.DetailView.submit();'; $javascript .= 'window.close();</script>'; echo $javascript; }