Skip to content
Snippets Groups Projects
Commit f74fd049 authored by Regis Houssin's avatar Regis Houssin
Browse files

Added ability to assign a category of product to a customer

parent deb94493
No related branches found
No related tags found
No related merge requests found
...@@ -160,6 +160,7 @@ else ...@@ -160,6 +160,7 @@ else
print '<tr><td>'.$langs->trans("ContentsVisibleByAll").'</td><td>'; print '<tr><td>'.$langs->trans("ContentsVisibleByAll").'</td><td>';
print $html->selectyesno("visible",$categorie->visible,1); print $html->selectyesno("visible",$categorie->visible,1);
print '</td></tr>'; 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").'">'; 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"; ...@@ -161,7 +161,8 @@ print "<div class='tabsAction'>\n";
if ($user->rights->categorie->creer) if ($user->rights->categorie->creer)
{ {
print "<a class='butAction' href='edit.php?id=".$c->id."&amp;type=".$type."'>".$langs->trans("Modify")."</a>"; $socid = ($c->socid ? "&amp;socid=".$c->socid : "");
print "<a class='butAction' href='edit.php?id=".$c->id.$socid."&amp;type=".$type."'>".$langs->trans("Modify")."</a>";
} }
if ($user->rights->categorie->supprimer) if ($user->rights->categorie->supprimer)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment