Add patch from meos to add photos on categories.

Fix: Solve pb in categories navigation
This commit is contained in:
Laurent Destailleur
2009-07-22 17:28:56 +00:00
parent d222a78c62
commit 30a41b5437
2 changed files with 4 additions and 5 deletions

View File

@@ -34,6 +34,7 @@ $langs->load("category");
$langs->load("bills");
$mesg = '';
$type=$_REQUEST['type'];
// Security check
if (!$user->rights->categorie->lire) accessforbidden();
@@ -108,13 +109,12 @@ if ($_GET["id"] || $_GET["ref"])
$head[$h][2] = 'photos';
$h++;
$title=$langs->trans("ProductsCategoryShort");
if ($type == 0) $title=$langs->trans("ProductsCategoryShort");
if ($type == 1) $title=$langs->trans("SuppliersCategoryShort");
if ($type == 2) $title=$langs->trans("CustomersCategoryShort");
$titre=$langs->trans("ProductsCategoryShort");
dol_fiche_head($head, 'photos', $titre);
dol_fiche_head($head, 'photos', $title);
/*
* Confirmation de la suppression de photo

View File

@@ -34,6 +34,7 @@ if ($_REQUEST['id'] == "")
exit();
}
$mesg = '';
$type=$_REQUEST['type'];
// Security check
@@ -42,8 +43,6 @@ if (! $user->rights->categorie->lire)
accessforbidden();
}
$mesg='';
$c = new Categorie($db);
$c->fetch($_REQUEST['id']);