Skip to content

Commit

Permalink
Merge pull request #410 from marcosgdf/minor
Browse files Browse the repository at this point in the history
Fixed dictionary form
  • Loading branch information
eldy committed Sep 24, 2012
2 parents f17906b + a24031d commit 3b8104f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/admin/dict.php
Expand Up @@ -686,7 +686,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 @@ -785,6 +785,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 @@ -872,9 +873,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 3b8104f

Please sign in to comment.