Add patch from meos to add photos on categories.
Fix: Solve pb in categories navigation
This commit is contained in:
parent
d222a78c62
commit
30a41b5437
@ -34,6 +34,7 @@ $langs->load("category");
|
|||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
$type=$_REQUEST['type'];
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if (!$user->rights->categorie->lire) accessforbidden();
|
if (!$user->rights->categorie->lire) accessforbidden();
|
||||||
@ -108,13 +109,12 @@ if ($_GET["id"] || $_GET["ref"])
|
|||||||
$head[$h][2] = 'photos';
|
$head[$h][2] = 'photos';
|
||||||
$h++;
|
$h++;
|
||||||
|
|
||||||
|
$title=$langs->trans("ProductsCategoryShort");
|
||||||
if ($type == 0) $title=$langs->trans("ProductsCategoryShort");
|
if ($type == 0) $title=$langs->trans("ProductsCategoryShort");
|
||||||
if ($type == 1) $title=$langs->trans("SuppliersCategoryShort");
|
if ($type == 1) $title=$langs->trans("SuppliersCategoryShort");
|
||||||
if ($type == 2) $title=$langs->trans("CustomersCategoryShort");
|
if ($type == 2) $title=$langs->trans("CustomersCategoryShort");
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'photos', $title);
|
||||||
$titre=$langs->trans("ProductsCategoryShort");
|
|
||||||
dol_fiche_head($head, 'photos', $titre);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Confirmation de la suppression de photo
|
* Confirmation de la suppression de photo
|
||||||
|
|||||||
@ -34,6 +34,7 @@ if ($_REQUEST['id'] == "")
|
|||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$mesg = '';
|
||||||
$type=$_REQUEST['type'];
|
$type=$_REQUEST['type'];
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
@ -42,8 +43,6 @@ if (! $user->rights->categorie->lire)
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
$mesg='';
|
|
||||||
|
|
||||||
$c = new Categorie($db);
|
$c = new Categorie($db);
|
||||||
$c->fetch($_REQUEST['id']);
|
$c->fetch($_REQUEST['id']);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user