mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 17:48:25 +01:00
Fix: Bad link
This commit is contained in:
@@ -56,7 +56,6 @@ $contact = new Contact($db);
|
||||
|
||||
/*
|
||||
* Action creation de l'action
|
||||
*
|
||||
*/
|
||||
if ($_POST["action"] == 'add_action')
|
||||
{
|
||||
|
||||
@@ -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>';
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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='';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user