Fix: Mauvaise variable utilisée
This commit is contained in:
parent
6339d64b15
commit
fe9e69b416
@ -46,18 +46,19 @@ require_once('../propal.class.php');
|
|||||||
require_once('../actioncomm.class.php');
|
require_once('../actioncomm.class.php');
|
||||||
require_once(DOL_DOCUMENT_ROOT.'/lib/CMailFile.class.php');
|
require_once(DOL_DOCUMENT_ROOT.'/lib/CMailFile.class.php');
|
||||||
|
|
||||||
|
if (isset($_GET["msg"])) { $msg=urldecode($_GET["msg"]); }
|
||||||
|
$year=isset($_GET["year"])?$_GET["year"]:"";
|
||||||
|
$month=isset($_GET["month"])?$_GET["month"]:"";
|
||||||
|
|
||||||
// Sécurité accés client
|
// Sécurité accés client
|
||||||
|
$socidp='';
|
||||||
|
if ($_GET["socidp"]) { $socidp=$_GET["socidp"]; }
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$action = '';
|
$action = '';
|
||||||
$socidp = $user->societe_id;
|
$socidp = $user->societe_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_GET["socidp"]) { $socidp=$_GET["socidp"]; }
|
|
||||||
if (isset($_GET["msg"])) { $msg=urldecode($_GET["msg"]); }
|
|
||||||
$year=isset($_GET["year"])?$_GET["year"]:"";
|
|
||||||
$month=isset($_GET["month"])?$_GET["month"]:"";
|
|
||||||
|
|
||||||
// Nombre de ligne pour choix de produit/service prédéfinis
|
// Nombre de ligne pour choix de produit/service prédéfinis
|
||||||
$NBLINES=4;
|
$NBLINES=4;
|
||||||
|
|
||||||
@ -799,7 +800,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
print '<form action="propal.php?propalid='.$propal->id.'" method="post">';
|
print '<form action="propal.php?propalid='.$propal->id.'" method="post">';
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td>'.$langs->trans('Note').'</td><td><textarea cols="60" rows="2" wrap="soft" name="note">';
|
print '<tr><td>'.$langs->trans('Note').'</td><td><textarea cols="60" rows="2" wrap="soft" name="note">';
|
||||||
print $obj->note;
|
print $propal->note;
|
||||||
print '</textarea></td></tr>';
|
print '</textarea></td></tr>';
|
||||||
print '<tr><td>'.$langs->trans("CloseAs").'</td><td>';
|
print '<tr><td>'.$langs->trans("CloseAs").'</td><td>';
|
||||||
print '<input type="hidden" name="action" value="setstatut">';
|
print '<input type="hidden" name="action" value="setstatut">';
|
||||||
@ -854,7 +855,7 @@ if ($_GET['propalid'] > 0)
|
|||||||
{
|
{
|
||||||
if ($user->rights->propale->envoyer)
|
if ($user->rights->propale->envoyer)
|
||||||
{
|
{
|
||||||
$propref = sanitize_string($obj->ref);
|
$propref = sanitize_string($propal->ref);
|
||||||
$file = $conf->propal->dir_output . '/'.$propref.'/'.$propref.'.pdf';
|
$file = $conf->propal->dir_output . '/'.$propref.'/'.$propref.'.pdf';
|
||||||
if (file_exists($file))
|
if (file_exists($file))
|
||||||
{
|
{
|
||||||
@ -940,7 +941,8 @@ if ($_GET['propalid'] > 0)
|
|||||||
*/
|
*/
|
||||||
$sql = 'SELECT id, '.$db->pdate('a.datea'). ' as da, label, note, fk_user_author' ;
|
$sql = 'SELECT id, '.$db->pdate('a.datea'). ' as da, label, note, fk_user_author' ;
|
||||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'actioncomm as a';
|
$sql .= ' FROM '.MAIN_DB_PREFIX.'actioncomm as a';
|
||||||
$sql .= ' WHERE a.fk_soc = '.$obj->idp.' AND a.propalrowid = '.$propal->id ;
|
$sql .= ' WHERE a.propalrowid = '.$propal->id ;
|
||||||
|
if ($socidp) $sql .= ' AND a.fk_soc = '.$socidp;
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user