Fixed issue #93

This commit is contained in:
Rooty 2021-09-28 18:10:20 +02:00
parent 89cada6b96
commit 62c8892288

View File

@ -526,7 +526,6 @@ var $archivage= null;
// --> recuperation du treeNode correspondant au noeurd
$tabTreeNode[0]=$myTree; //--> treeNodeUnique....
// printTabTreeNode($tabTreeNode, $this->getNode(), "NODE", "node_id", false, '');
printTabTreeNode($tabTreeNode, $this->getNode(), "NODE", "node_id", false, "", "", "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("TxtNodeIn"), ENT_QUOTES)."\"");
/* -- Fin d'affichage des noeud d'ajout */
@ -536,19 +535,11 @@ var $archivage= null;
$value =get_class($this);
$name =getMessage("class".$value);
$name =( (isset($name)) && ($name!="") )?$name:$value;
// var_dump($value);
// var_dump($name);
// var_dump($this->getId());
// var_dump($this->getName($currentCode));
// var_dump($this->getIcone());
$GLOBALS['SYSTEM_TEMPLATE']->MxText("TxtContentType", $name);
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("contentType", get_class($this));
$GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("objectId", $this->getId());
// $GLOBALS['SYSTEM_TEMPLATE']->MxText("resumeValue", $this->getResume());
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("resumeValue", "textarea", "resumeValue", $this->getResume(), "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("resumeObject"), ENT_QUOTES)."\"", getMessage("resumeObject"));
$GLOBALS['SYSTEM_TEMPLATE']->MxText("keyWordValue", $this->getKeyWord());
@ -582,7 +573,6 @@ var $archivage= null;
$GLOBALS["SYSTEM_TEMPLATE"]->MxImage("blocName.pictoLanguage", $img);
//Récupère le nom de l'objet dans la langue correspondante à la boucle
$testnamenodeprint = $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("blocName.namelanguagevalue", htmlentitiesconv($this->getName($tab[$i]->getCode(), ENT_QUOTES)));
// $GLOBALS['SYSTEM_TEMPLATE']->MxAttribut("blocName.nameInput", "name".$tab[$i]->getCode());
$GLOBALS["SYSTEM_TEMPLATE"]->MxFormField("blocName.nameInput", "text", "name".$tab[$i]->getCode(), $this->getName($tab[$i]->getCode()), "class=\"form\" required=\"true\" title=\"".htmlspecialchars(getMessage("nameObjectList"), ENT_QUOTES)."\"", getMessage("nameObjectList"));
$GLOBALS['SYSTEM_TEMPLATE']->MxBloc("blocName", "loop");
}
@ -660,7 +650,6 @@ var $archivage= null;
# Variables de configuration de l'objet
/* Pour le nom de l'objet... */
// while (list($key, $val) = each($_POST)) {
foreach($_POST as $key => $val){
if (!(strpos($key, "name")===false)) // on a trouvé un nom pour une langue
{
@ -676,8 +665,8 @@ var $archivage= null;
{
$isValid=false;
}
$this->resume = (isset($_POST["resume"]))?$_POST["resume"]:"";
$this->keyWord = (isset($_POST["keyWord"]))?$_POST["keyWord"]:"";
$this->resume = (isset($_POST["resumeValue"]))?$_POST["resumeValue"]:"";
$this->keyWord = (isset($_POST["keyWordValue"]))?$_POST["keyWordValue"]:"";
$this->parution = (isset($_POST["parution"]))?$_POST["parution"]:"";
$this->archivage = (isset($_POST["archivage"]))?$_POST["archivage"]:"";
if ((isset($_POST["node_id"])) && (is_numeric($_POST["node_id"])))
@ -736,7 +725,6 @@ var $archivage= null;
# Variables de configuration de l'objet
/* Pour le nom de l'objet... */
// while (list($key, $val) = each($_POST)) {
foreach($_POST as $key => $val){
if (!(strpos($key, "name")===false)) // on a trouvé un nom pour une langue
{
@ -753,8 +741,8 @@ var $archivage= null;
$isValid=false;
}
$this->resume = (isset($_POST["resume"]))?$_POST["resume"]:"";
$this->keyWord = (isset($_POST["keyWord"]))?$_POST["keyWord"]:"";
$this->resume = (isset($_POST["resumeValue"]))?$_POST["resumeValue"]:"";
$this->keyWord = (isset($_POST["keyWordValue"]))?$_POST["keyWordValue"]:"";
$this->parution = (isset($_POST["parution"]))?$_POST["parution"]:"";
$this->archivage = (isset($_POST["archivage"]))?$_POST["archivage"]:"";
if ((isset($_POST["node_id"])) && (is_numeric($_POST["node_id"])))
@ -766,16 +754,6 @@ var $archivage= null;
if ($isValid==true)
{
$TmpObject=$GLOBALS["SYSTEM_MANAGER"]["COORDINATION_OBJ"]->updateInstance($this);
/* Gestion de la recherche, ajout de la contextualisation de la lib */
/* if(file_exists($CONF_LIB_PATH."lib/package/search.php")){
includePackage("search.php");
$methods = getAllRights($this->contentType);
if(count($methods)){
Search::updSearch("", $this->getContentType(), $methods, $this->getName("FR"), $this->getResume(), $this->getKeyWord(), -1, $this->getId());
}
} */
/* Fin recherche */
return "msgSave";
}else{
return "wrongArgument";