Fixed issue #53.

This commit is contained in:
Rooty 2021-04-04 15:41:49 +02:00
parent 6a88cb1f05
commit 0bb98c7af7

View File

@ -2,8 +2,9 @@
/**------------------------------------------------
*
* Granilim (C) 2004-2006, Limousin expansion
* Limousin expansion contact@granilim.org
* Rooty, 2018 <rooty@rooty.me>
*
*
* This software is protected by copyright, please
* read the file COPYRIGHT.
* This program is distributed in the hope that it
@ -255,10 +256,11 @@ Class Home extends CoordinationObj
/* creation des onglets */
$this->tabeCreate();
// Cas où le noeud correspond à la racine de la plateforme Qware
if(recupCommunity() === "3") $nodeId = "2"; else $nodeId = recupCommunity();
# Requete sur identifiant de l objet de coordination correspondant
// $sql="SELECT * FROM ".DATA_ACCES_TABLE_PREFIX.DATA_ACCES_OBJECT_PREFIX."textentrynode WHERE node_id=".recupCommunityPublic()." AND langue_id=".$GLOBALS["SYSTEM_USER_SESSION"]->langue->getId();
$sql="SELECT * FROM ".DATA_ACCES_TABLE_PREFIX.DATA_ACCES_OBJECT_PREFIX."textentrynode WHERE node_id=".recupCommunity()." AND langue_id=".$GLOBALS["SYSTEM_USER_SESSION"]->langue->getId();
// var_dump($sql);
$sql="SELECT * FROM ".DATA_ACCES_TABLE_PREFIX.DATA_ACCES_OBJECT_PREFIX."textentrynode WHERE node_id=".$nodeId." AND langue_id=".$GLOBALS["SYSTEM_USER_SESSION"]->langue->getId();
# Execution de Requete
$result=$GLOBALS['SYSTEM_DATABASE_CONN']->sql_query($sql);