Fix: use propal instead propale

This commit is contained in:
Regis Houssin 2012-08-25 19:25:06 +02:00
parent dcfc34e64e
commit e402c9cd28

View File

@ -74,7 +74,8 @@ $hideref = (GETPOST('hideref','int') ? GETPOST('hideref','int') : (! empty($co
$NBLINES=4; $NBLINES=4;
// Security check // Security check
$module='propale'; $module='propal';
$dbtable='';
if (isset($socid)) if (isset($socid))
{ {
$objectid=$socid; $objectid=$socid;
@ -84,8 +85,6 @@ if (isset($socid))
else if (isset($id) && $id > 0) else if (isset($id) && $id > 0)
{ {
$objectid=$id; $objectid=$id;
$module='propale';
$dbtable='propal';
} }
if ($user->societe_id) $socid=$user->societe_id; if ($user->societe_id) $socid=$user->societe_id;
$result = restrictedArea($user, $module, $objectid, $dbtable); $result = restrictedArea($user, $module, $objectid, $dbtable);