- Messaggi: 9
- Ringraziamenti ricevuti 0
<?php
require('../../config.inc.php');
chdir($root_directory);
require_once('include/utils/utils.php');
require_once('modules/Update/Update.php');
require_once('vtlib/Vtiger/Utils.php');
require_once('vtlib/Vtiger/Field.php');
require_once('vtlib/Vtiger/Module.php');
require_once('vtlib/Vtiger/Block.php');
include_once('vtlib/Vtiger/ModuleBasic.php');
$Vtiger_Utils_Log = true;
global $adb, $table_prefix;
VteSession::start(); // crmv@128133
$moduleInstance = Vtiger_Module::getInstance('TestDue');
$field = Vtiger_Field::getInstance('vcf_19_3',$moduleInstance);
$field->masseditable = 1;
$field->save();
?>
<?php
require('../../config.inc.php');
chdir($root_directory);
require_once('include/utils/utils.php');
require_once('modules/Update/Update.php');
require_once('vtlib/Vtiger/Utils.php');
require_once('vtlib/Vtiger/Field.php');
require_once('vtlib/Vtiger/Module.php');
require_once('vtlib/Vtiger/Block.php');
include_once('vtlib/Vtiger/ModuleBasic.php');
$Vtiger_Utils_Log = true;
global $adb, $table_prefix;
VteSession::start(); // crmv@128133
$moduleInstance = Vtiger_Module::getInstance('AmministrazioneInter');
$field = Vtiger_Field::getInstance('vcf_10_3',$moduleInstance);
$field->masseditable = 1;
$field->save();
$field = Vtiger_Field::getInstance('vcf_10_4',$moduleInstance);
$field->masseditable = 1;
$field->save();
$field = Vtiger_Field::getInstance('vcf_10_5',$moduleInstance);
$field->masseditable = 1;
$field->save();
?>
<?php
function appoggiotestdue($engine){
$metaid = $engine->metaid;
$testunoid = $engine->getCrmid($metaid);
$module = getSalesEntityType($testunoid);
$campo = CRMEntity::getInstance("TestUno");
$campo->retrieve_entity_info_no_html($testunoid, "TestUno");
$RM = RelationManager::getInstance();
$testdueIds = $RM->getRelatedIds($module, $testunoid, "TestDue");
foreach($testdueIds as $testdueid){
$focus = CRMEntity::getInstance("TestDue");
$focus->retrieve_entity_info_no_html($testdueid, "TestDue");
$focus->mode = 'edit';
$focus->column_fields['vcf_19_3'] = campo->column_fields['vcf_18_1'];
$focus->save("TestDue");
}
}
Si prega Accedi a partecipare alla conversazione.