Skip to content

Commit

Permalink
Fixed dictionary form
Browse files Browse the repository at this point in the history
When creating or modifying an entry, id param was lost
Also, missing </form> added
  • Loading branch information
marcosgdf committed Sep 22, 2012
1 parent e721c6e commit a24031d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/admin/dict.php
Expand Up @@ -685,7 +685,7 @@

$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%">';

Expand Down Expand Up @@ -783,6 +783,7 @@
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);
Expand Down Expand Up @@ -869,9 +870,8 @@
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.'">';

Expand Down

0 comments on commit a24031d

Please sign in to comment.