Fix: Bad link

This commit is contained in:
Laurent Destailleur
2009-08-13 13:44:34 +00:00
parent a7e73eaf0e
commit 031bb0a1fc
4 changed files with 11 additions and 9 deletions

View File

@@ -56,7 +56,6 @@ $contact = new Contact($db);
/*
* Action creation de l'action
*
*/
if ($_POST["action"] == 'add_action')
{

View File

@@ -552,7 +552,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$action
print '</td><td align="right" nowrap="nowrap">';
if ($user->rights->agenda->myactions->create || $user->rights->agenda->allactions->create)
{
print '<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&datep='.sprintf("%04d%02d%02d",$year,$month,$day).'">';
print '<a href="'.DOL_URL_ROOT.'/comm/action/fiche.php?action=create&datep='.sprintf("%04d%02d%02d",$year,$month,$day).'&backtopage='.urlencode($_SERVER["PHP_SELF"]).'">';
print img_picto($langs->trans("NewAction"),'edit_add.png');
print '</a>';
}

View File

@@ -46,7 +46,7 @@ if (!empty($conf->global->MAIN_MODULE_CHRONODOCS)) $langs->load("chronodocs");
// Security check
$socid = isset($_GET["socid"])?$_GET["socid"]:'';
if ($user->societe_id) $socid=$user->societe_id;
if ($user->societe_id > 0) $socid=$user->societe_id;
$result = restrictedArea($user,'societe',$socid,'');
$sortorder=$_GET["sortorder"];
@@ -101,6 +101,14 @@ if ($_POST["action"] == 'setassujtva' && $user->rights->societe->creer)
* View
*/
llxHeader('',$langs->trans('CustomerCard'));
$userstatic=new User($db);
$form = new Form($db);
if ($mode == 'search')
{
if ($mode-search == 'soc')
@@ -124,11 +132,6 @@ if ($mode == 'search')
}
}
llxHeader('',$langs->trans('CustomerCard'));
$userstatic=new User($db);
$form = new Form($db);
if ($socid > 0)
{

View File

@@ -1541,7 +1541,7 @@ function restrictedArea($user, $feature='societe', $objectid=0, $dbtablename='',
}
// If we have a particular object to check permissions on
if ($objectid)
if ($objectid > 0)
{
$sql='';