Skip to content
Snippets Groups Projects
Commit a24031dc authored by Marcos García de La Fuente's avatar Marcos García de La Fuente
Browse files

Fixed dictionary form

When creating or modifying an entry, id param was lost
Also, missing </form> added
parent e721c6e7
No related branches found
No related tags found
No related merge requests found
......@@ -685,7 +685,7 @@ if ($id)
$fieldlist=explode(',',$tabfield[$id]);
print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
print '<form action="dict.php?id='.$id.'" method="post">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<table class="noborder" width="100%">';
......@@ -783,6 +783,7 @@ if ($id)
print '<tr><td colspan="'.(count($fieldlist)+2).'">&nbsp;</td></tr>';
}
print '</form>';
// List of available values in database
dol_syslog("htdocs/admin/dict sql=".$sql, LOG_DEBUG);
......@@ -869,9 +870,8 @@ if ($id)
print '<tr '.$bc[$var].' id="rowid-'.$obj->rowid.'">';
if ($action == 'edit' && ($rowid == (! empty($obj->rowid)?$obj->rowid:$obj->code)))
{
print '<form action="dict.php" method="post">';
print '<form action="dict.php?id='.$id.'" method="post">';
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
print '<input type="hidden" name="id" value="'.$id.'">';
print '<input type="hidden" name="page" value="'.$page.'">';
print '<input type="hidden" name="rowid" value="'.$rowid.'">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment