From 0bf9a72cbe22066540d34fc64d347fbefdce520a Mon Sep 17 00:00:00 2001 From: satish <satish.dvnk@vtiger.com> Date: Tue, 16 May 2017 13:45:23 +0530 Subject: [PATCH] Added hook to stop migration if non ported extension found --- .../Migration/MigrationPostProcess.tpl | 28 +++++++++++++++++++ modules/Migration/views/Index.php | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 layouts/v7/modules/Migration/MigrationPostProcess.tpl diff --git a/layouts/v7/modules/Migration/MigrationPostProcess.tpl b/layouts/v7/modules/Migration/MigrationPostProcess.tpl new file mode 100644 index 000000000..c46df19f8 --- /dev/null +++ b/layouts/v7/modules/Migration/MigrationPostProcess.tpl @@ -0,0 +1,28 @@ +{*+********************************************************************************** +* The contents of this file are subject to the vtiger CRM Public License Version 1.1 +* ("License"); You may not use this file except in compliance with the License +* The Original Code is: vtiger CRM Open Source +* The Initial Developer of the Original Code is vtiger. +* Portions created by vtiger are Copyright (C) vtiger. +* All Rights Reserved. +************************************************************************************} + +{strip} + <center> + <footer class="noprint"> + <div class="vtFooter"> + <p> + {vtranslate('POWEREDBY')} {$VTIGER_VERSION} + © 2004 - {date('Y')} + <a href="//www.vtiger.com" target="_blank">vtiger.com</a> + | + <a href="#" onclick="window.open('copyright.html', 'copyright', 'height=115,width=575').moveTo(210, 620)">{vtranslate('LBL_READ_LICENSE')}</a> + | + <a href="https://www.vtiger.com/privacy-policy" target="_blank">{vtranslate('LBL_PRIVACY_POLICY')}</a> + </p> + </div> + </footer> + </center> + {include file='JSResources.tpl'|@vtemplate_path} + </div> +{/strip} \ No newline at end of file diff --git a/modules/Migration/views/Index.php b/modules/Migration/views/Index.php index 95943fae3..eb0fcde72 100644 --- a/modules/Migration/views/Index.php +++ b/modules/Migration/views/Index.php @@ -55,7 +55,7 @@ class Migration_Index_View extends Vtiger_Basic_View { public function postProcess(Vtiger_Request $request) { $viewer = $this->getViewer($request); $moduleName = $request->getModule(); - $viewer->view('InstallPostProcess.tpl', 'Install'); + $viewer->view('MigrationPostProcess.tpl', $moduleName); } public function getHeaderCss(Vtiger_Request $request) { -- GitLab