diff --git a/modules/Users/DefaultDataPopulator.php b/modules/Users/DefaultDataPopulator.php index f10fc01141813bcf10d6f29a5908a94c2dd93086..31538ea5288b96c06d1c02f6213420e13179bf19 100644 --- a/modules/Users/DefaultDataPopulator.php +++ b/modules/Users/DefaultDataPopulator.php @@ -2573,7 +2573,7 @@ Should any need arise,please do give us a call.'; $fieldMap = array( array('company', 'accountname', null, 'potentialname', 0), array('industry', 'industry', null, null, 1), - array('phone', 'phone', 'phone', null), 1, + array('phone', 'phone', 'phone', null, 1), array('fax', 'fax', 'fax', null, 1), array('rating', 'rating', null, null, 1), array('email', 'email1', 'email', null, 0), diff --git a/run-migration-script.php b/run-migration-script.php new file mode 100644 index 0000000000000000000000000000000000000000..607cb506e7b93714d78701dcf8c64de1fafd4638 --- /dev/null +++ b/run-migration-script.php @@ -0,0 +1,14 @@ +<?php +/*+*********************************************************************************** + * The contents of this file are subject to the vtiger CRM Public License Version 1.0 + * ("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. + *************************************************************************************/ + +//migration script started +$db = PearDatabase::getInstance(); +$phoneFieldId = getFieldid(getTabid('Leads'), 'phone'); +$db->pquery('UPDATE vtiger_convertleadmapping SET editable=? WHERE leadfid=?', array(1, $phoneFieldId)); \ No newline at end of file