Fixed severals small issues : each() function removed in php8, summernote's class missing properties, missing field in backupfile database, js loading in backup method.
This commit is contained in:
parent
0222fc8137
commit
77692a6c11
@ -228,7 +228,8 @@ Class AdminNode extends CoordinationObj
|
||||
|
||||
# Variables de configuration de l'objet
|
||||
/* Pour le nom de l'objet... */
|
||||
while (list($key, $val) = each($_POST)) {
|
||||
// while (list($key, $val) = each($_POST)) {
|
||||
foreach($_POST as $key => $val){
|
||||
if (!(strpos($key, "nameLanguage")===false)) // on a trouvïżœun nom pour une langue
|
||||
{
|
||||
if ( $val!="" )
|
||||
|
@ -216,7 +216,8 @@ Class AdminObject extends CoordinationObj
|
||||
|
||||
//Initialisation d'un compteur du nombre d'objets trouvés
|
||||
$cpt_objet=0;
|
||||
while (list($i, $lib) = each($tabName))
|
||||
// while (list($i, $lib) = each($tabName))
|
||||
foreach($tabName as $i => $lib)
|
||||
{
|
||||
/* Test si l'objet est accessible ou non et si n'est pas propriétaire */
|
||||
if ( ($tabObject[$i]->getId() != $this->getId() ) )
|
||||
@ -479,7 +480,8 @@ Class AdminObject extends CoordinationObj
|
||||
|
||||
//Initialisation d'un compteur du nombre d'objets trouvés
|
||||
$cpt_objet=0;
|
||||
while (list($i, $lib) = each($tabName))
|
||||
// while (list($i, $lib) = each($tabName))
|
||||
foreach($tabName as $i => $lib)
|
||||
{
|
||||
$value =$tabAllowed[$i];
|
||||
$name =getMessage("class".strtolower($tabAllowed[$i]));
|
||||
|
@ -174,7 +174,8 @@ Class AdminUser extends CoordinationObj
|
||||
asort($tabName);
|
||||
reset($tabName);
|
||||
|
||||
while (list($i, $lib) = each($tabName))
|
||||
// while (list($i, $lib) = each($tabName))
|
||||
foreach($tabName as $i => $lib)
|
||||
{
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxText("ligne.frmUser1",getMessage("frmUser1"));
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxText("ligne.frmUser2",getMessage("frmUser2"));
|
||||
@ -322,7 +323,8 @@ function exportAdmin()
|
||||
if($GLOBALS["SYSTEM_TEMPLATE"]->isMxFlag("ObjectName","text"))
|
||||
$GLOBALS["SYSTEM_TEMPLATE"]->MxText("ObjectName", $this->getName($defaultCode));
|
||||
|
||||
while (list($i, $lib) = each($tabName))
|
||||
// while (list($i, $lib) = each($tabName))
|
||||
foreach($tabName as $i => $lib)
|
||||
{
|
||||
//On récupère les données de l'utilisateur concerné
|
||||
$currentUser=$tabUser[$i];
|
||||
|
@ -811,7 +811,7 @@ Class InstallManager extends CoordinationObj
|
||||
mxCallCss($arrayCallCss);
|
||||
|
||||
$arrayCallJs = array();
|
||||
$arrayCallJs[] = "data/javascript/jquery.dataTables-currentjquery.dataTables.min.js";
|
||||
$arrayCallJs[] = "data/javascript/jquery.dataTables-current/jquery.dataTables.min.js";
|
||||
$arrayCallJs[] = "data/javascript/dataTables.bootstrap4-current/dataTables.bootstrap4.min.js";
|
||||
mxCallJs($arrayCallJs);
|
||||
|
||||
|
@ -108,7 +108,7 @@ class backup
|
||||
$tabresult[$i]["backup_date"]=$tabpatch["backup_date"];
|
||||
|
||||
//On vérifie s'il existe des scripts associés au patch
|
||||
$sql_script="SELECT COUNT(backup_new_name) as cpt FROM ".DATA_ACCES_TABLE_PREFIX.DATA_ACCES_PACKAGE_PREFIX."backupfile WHERE backup_id=".$tabpatch["backup_id"];
|
||||
$sql_script="SELECT COUNT(backupfile_new_name) as cpt FROM ".DATA_ACCES_TABLE_PREFIX.DATA_ACCES_PACKAGE_PREFIX."backupfile WHERE backup_id=".$tabpatch["backup_id"];
|
||||
$result_script=$GLOBALS["SYSTEM_DATABASE_CONN"]->sql_query($sql_script);
|
||||
$tab=$GLOBALS["SYSTEM_DATABASE_CONN"]->sql_fetchrow();
|
||||
|
||||
|
@ -534,7 +534,8 @@ function printTreeGroupSon($tabSel, $TreeGroup, $selected, $id, $char="--", $MxB
|
||||
$tabName[$i] = preg_replace("/^[[:space:]]*[a-z]+[.)".chr(176)."][[:space:]]+/i", "", $tabName[$i]);
|
||||
}
|
||||
|
||||
while (list($i, $lib) = each($tabName))
|
||||
// while (list($i, $lib) = each($tabName))
|
||||
foreach($tabName as $i => $lib)
|
||||
{
|
||||
$tabSel[$arrayLevel[$i]]=$char.$lib;
|
||||
$tabSel=printTreeGroupSon($tabSel, $TreeGroup, $selected, $arrayLevel[$i], $char.$charAdd, $MxBlocName);
|
||||
@ -617,7 +618,8 @@ function printTreeNodeSon($tabSel, $TreeGroup, $selected, $id, $char="--", $MxBl
|
||||
$tabName[$i] = preg_replace("/^[[:space:]]*[a-z]+[.)".chr(176)."][[:space:]]+/i", "", $tabName[$i]);
|
||||
}
|
||||
|
||||
while (list($i, $lib) = each($tabName))
|
||||
// while (list($i, $lib) = each($tabName))
|
||||
foreach($tabName as $i => $lib)
|
||||
{
|
||||
$tabSel[$arrayLevel[$i]]=$char.$lib;
|
||||
$tabSel=printTreeNodeSon($tabSel, $TreeGroup, $selected, $arrayLevel[$i], $char.$charAdd, $MxBlocName);
|
||||
@ -659,7 +661,8 @@ function printTabUser($tabUser, $selected, $MxBlocName="USER", $name="user_id",
|
||||
$j=0;
|
||||
|
||||
// Pour l'affichage
|
||||
while (list($i, $lib) = each($tabName))
|
||||
// while (list($i, $lib) = each($tabName))
|
||||
foreach($tabName as $i => $lib)
|
||||
{
|
||||
if (is_object($tabUser[$i]))
|
||||
{
|
||||
|
@ -63,7 +63,25 @@ var $lang = null;
|
||||
* @var chaine
|
||||
* @desc valeur de la chaine html
|
||||
*/
|
||||
var $string = null;
|
||||
var $string = null;
|
||||
|
||||
/**
|
||||
* @var chaine
|
||||
* @desc valeur de la chaine html
|
||||
*/
|
||||
var $width = null;
|
||||
|
||||
/**
|
||||
* @var chaine
|
||||
* @desc valeur de la chaine html
|
||||
*/
|
||||
var $height = null;
|
||||
|
||||
/**
|
||||
* @var chaine
|
||||
* @desc valeur de la chaine html
|
||||
*/
|
||||
var $toolbar = null;
|
||||
|
||||
/**#@-*/
|
||||
//
|
||||
|
@ -735,7 +735,8 @@ var $archivage= null;
|
||||
# Variables de configuration de l'objet
|
||||
|
||||
/* Pour le nom de l'objet... */
|
||||
while (list($key, $val) = each($_POST)) {
|
||||
// while (list($key, $val) = each($_POST)) {
|
||||
foreach($_POST as $key => $val){
|
||||
if (!(strpos($key, "name")===false)) // on a trouvé un nom pour une langue
|
||||
{
|
||||
if ( $val!="" )
|
||||
|
@ -638,11 +638,11 @@ class ModeliXe extends ErrorManager{
|
||||
//Build of multiple choice select from a value array
|
||||
if (is_array($value) && $multiple > 0){
|
||||
reset($value);
|
||||
while (list($Vcle, $Vvalue) = each($value)){
|
||||
|
||||
// while (list($Vcle, $Vvalue) = each($value)){
|
||||
foreach($value as $Vcle => $Vvalue){
|
||||
/* correction d'un bug
|
||||
les variables devaient être comparées en tant que string */
|
||||
if ((string)$cle === (string)$Vvalue && $Vvalue != '') {
|
||||
les variables devaient être comparées en tant que string */
|
||||
if ((string)$cle === (string)$Vvalue && $Vvalue != '') {
|
||||
$sel .= "\t".'<option value="'.$cle.'" selected="selected">'.$Avalue.'</option>'."\n";
|
||||
$test = 1;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user