New: Start to work on data check for dictionnary tables.
This commit is contained in:
parent
355ec7fd27
commit
b31bf68376
@ -364,8 +364,37 @@ $tabhelp[24] = array();
|
|||||||
$tabhelp[25] = array();
|
$tabhelp[25] = array();
|
||||||
$tabhelp[26] = array();
|
$tabhelp[26] = array();
|
||||||
|
|
||||||
|
// List of check for fields (NOT USED YET)
|
||||||
|
$tabfieldcheck=array();
|
||||||
|
$tabfieldcheck[1] = array();
|
||||||
|
$tabfieldcheck[2] = array();
|
||||||
|
$tabfieldcheck[3] = array();
|
||||||
|
$tabfieldcheck[4] = array();
|
||||||
|
$tabfieldcheck[5] = array();
|
||||||
|
$tabfieldcheck[6] = array();
|
||||||
|
$tabfieldcheck[7] = array();
|
||||||
|
$tabfieldcheck[8] = array();
|
||||||
|
$tabfieldcheck[9] = array();
|
||||||
|
$tabfieldcheck[10] = array();
|
||||||
|
$tabfieldcheck[11] = array();
|
||||||
|
$tabfieldcheck[12] = array();
|
||||||
|
$tabfieldcheck[13] = array();
|
||||||
|
$tabfieldcheck[14] = array();
|
||||||
|
$tabfieldcheck[15] = array();
|
||||||
|
$tabfieldcheck[16] = array();
|
||||||
|
$tabfieldcheck[17] = array();
|
||||||
|
$tabfieldcheck[18] = array();
|
||||||
|
$tabfieldcheck[19] = array();
|
||||||
|
$tabfieldcheck[20] = array();
|
||||||
|
$tabfieldcheck[21] = array();
|
||||||
|
$tabfieldcheck[22] = array();
|
||||||
|
$tabfieldcheck[23] = array();
|
||||||
|
$tabfieldcheck[24] = array();
|
||||||
|
$tabfieldcheck[25] = array();
|
||||||
|
$tabfieldcheck[26] = array();
|
||||||
|
|
||||||
// Complete all arrays with entries found into modules
|
// Complete all arrays with entries found into modules
|
||||||
complete_dictionary_with_modules($taborder,$tabname,$tablib,$tabsql,$tabsqlsort,$tabfield,$tabfieldvalue,$tabfieldinsert,$tabrowid,$tabcond,$tabhelp);
|
complete_dictionary_with_modules($taborder,$tabname,$tablib,$tabsql,$tabsqlsort,$tabfield,$tabfieldvalue,$tabfieldinsert,$tabrowid,$tabcond,$tabhelp,$tabfieldcheck);
|
||||||
|
|
||||||
|
|
||||||
// Define elementList and sourceList (used for dictionary "type of contacts")
|
// Define elementList and sourceList (used for dictionary "type of contacts")
|
||||||
|
|||||||
@ -862,9 +862,10 @@ function unActivateModule($value, $requiredby=1)
|
|||||||
* @param array &$tabrowid Tabrowid
|
* @param array &$tabrowid Tabrowid
|
||||||
* @param array &$tabcond Tabcond
|
* @param array &$tabcond Tabcond
|
||||||
* @param array &$tabhelp Tabhelp
|
* @param array &$tabhelp Tabhelp
|
||||||
|
* @param array &$tabfieldcheck Tabfieldcheck
|
||||||
* @return int 1
|
* @return int 1
|
||||||
*/
|
*/
|
||||||
function complete_dictionary_with_modules(&$taborder,&$tabname,&$tablib,&$tabsql,&$tabsqlsort,&$tabfield,&$tabfieldvalue,&$tabfieldinsert,&$tabrowid,&$tabcond,&$tabhelp)
|
function complete_dictionary_with_modules(&$taborder,&$tabname,&$tablib,&$tabsql,&$tabsqlsort,&$tabfield,&$tabfieldvalue,&$tabfieldinsert,&$tabrowid,&$tabcond,&$tabhelp,&$tabfieldcheck)
|
||||||
{
|
{
|
||||||
global $db, $modules, $conf, $langs;
|
global $db, $modules, $conf, $langs;
|
||||||
|
|
||||||
@ -977,6 +978,7 @@ function complete_dictionary_with_modules(&$taborder,&$tabname,&$tablib,&$tabsql
|
|||||||
foreach($objMod->dictionaries['tabfieldinsert'] as $val) $tabfieldinsert[] = $val;
|
foreach($objMod->dictionaries['tabfieldinsert'] as $val) $tabfieldinsert[] = $val;
|
||||||
foreach($objMod->dictionaries['tabrowid'] as $val) $tabrowid[] = $val;
|
foreach($objMod->dictionaries['tabrowid'] as $val) $tabrowid[] = $val;
|
||||||
foreach($objMod->dictionaries['tabcond'] as $val) $tabcond[] = $val;
|
foreach($objMod->dictionaries['tabcond'] as $val) $tabcond[] = $val;
|
||||||
|
foreach($objMod->dictionaries['tabfieldcheck'] as $val) $tabfieldcheck[] = $val;
|
||||||
if (! empty($objMod->dictionaries['tabhelp'])) foreach($objMod->dictionaries['tabhelp'] as $val) $tabhelp[] = $val;
|
if (! empty($objMod->dictionaries['tabhelp'])) foreach($objMod->dictionaries['tabhelp'] as $val) $tabhelp[] = $val;
|
||||||
//foreach($objMod->dictionaries['tabsqlsort'] as $val) $tablib[] = $val;
|
//foreach($objMod->dictionaries['tabsqlsort'] as $val) $tablib[] = $val;
|
||||||
//$tabname = array_merge ($tabname, $objMod->dictionaries['tabname']);
|
//$tabname = array_merge ($tabname, $objMod->dictionaries['tabname']);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user