mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
Added ability to assign a category of product to a customer
This commit is contained in:
@@ -160,6 +160,7 @@ else
|
||||
print '<tr><td>'.$langs->trans("ContentsVisibleByAll").'</td><td>';
|
||||
print $html->selectyesno("visible",$categorie->visible,1);
|
||||
print '</td></tr>';
|
||||
print '<input type="hidden" name="socid" value="'.$categorie->socid.'">';
|
||||
}
|
||||
|
||||
print '<tr><td colspan="2" align="center"><input type="submit" class="button" value="'.$langs->trans("Modify").'">';
|
||||
|
||||
@@ -161,7 +161,8 @@ print "<div class='tabsAction'>\n";
|
||||
|
||||
if ($user->rights->categorie->creer)
|
||||
{
|
||||
print "<a class='butAction' href='edit.php?id=".$c->id."&type=".$type."'>".$langs->trans("Modify")."</a>";
|
||||
$socid = ($c->socid ? "&socid=".$c->socid : "");
|
||||
print "<a class='butAction' href='edit.php?id=".$c->id.$socid."&type=".$type."'>".$langs->trans("Modify")."</a>";
|
||||
}
|
||||
|
||||
if ($user->rights->categorie->supprimer)
|
||||
|
||||
Reference in New Issue
Block a user