Correction bug #18521
This commit is contained in:
parent
c09d353a7a
commit
64dd0ec746
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2002-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -298,9 +298,7 @@ elseif ($_GET["action"] == 'edit' && $_GET["id"] > 0)
|
|||||||
print '<input type="submit" class="button" value="'.$langs->trans("Save").'">';
|
print '<input type="submit" class="button" value="'.$langs->trans("Save").'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print "</table>\n";
|
print "</table>\n";
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
}
|
}
|
||||||
elseif ($_GET["id"] > 0)
|
elseif ($_GET["id"] > 0)
|
||||||
@ -308,11 +306,9 @@ elseif ($_GET["id"] > 0)
|
|||||||
/*
|
/*
|
||||||
* Affichage en mode visu
|
* Affichage en mode visu
|
||||||
*/
|
*/
|
||||||
llxHeader();
|
|
||||||
|
|
||||||
if ($mesg) print $mesg."<br>";
|
if ($mesg) print $mesg."<br>";
|
||||||
|
|
||||||
dolibarr_fiche_head($head, $a, $langs->trans("InterventionCard"));
|
|
||||||
|
|
||||||
$fichinter = new Fichinter($db);
|
$fichinter = new Fichinter($db);
|
||||||
$result=$fichinter->fetch($_GET["id"]);
|
$result=$fichinter->fetch($_GET["id"]);
|
||||||
@ -321,6 +317,13 @@ elseif ($_GET["id"] > 0)
|
|||||||
dolibarr_print_error($db);
|
dolibarr_print_error($db);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($user->societe_id > 0 && $fichinter->socid <> $user->societe_id)
|
||||||
|
accessforbidden();
|
||||||
|
|
||||||
|
llxHeader();
|
||||||
|
dolibarr_fiche_head($head, $a, $langs->trans("InterventionCard"));
|
||||||
|
|
||||||
$fichinter->fetch_client();
|
$fichinter->fetch_client();
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user