Permalink
Browse files

Link new item in backward keys

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1211 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent b99f3e6 commit c3425cf9a65e41645d7c921272b8dc3691203dc3 jakubvrana committed Oct 23, 2009
Showing with 8 additions and 0 deletions.
  1. +3 −0 changes.txt
  2. +5 −0 editor/include/adminer.inc.php
View
@@ -1,3 +1,6 @@
+Adminer 2.2.1-dev:
+Link new item in backward keys (Editor)
+
Adminer 2.2.0 (released 2009-10-20):
Database list - bulk drop, number of tables
Enlarge field for enum and set definition
@@ -85,6 +85,11 @@ function backwardKeysPrint($backwardKeys, $row) {
$link .= where_link($i++, $column, $row[$val]);
}
echo " <a href='" . h($link) . "'>$backwardKey[name]</a>";
+ $link = ME . 'edit=' . urlencode($table);
+ foreach ($cols as $column => $val) {
+ $link .= "&set" . urlencode("[" . bracket_escape($column) . "]") . "=" . urlencode($row[$val]);
+ }
+ echo "<a href='" . h($link) . "' title='" . lang('New item') . "'>+</a>";
}
}
}

0 comments on commit c3425cf

Please sign in to comment.