Fix bug #3068680 "child tables info uses wrong field name", reported by langerheiko
authorGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Fri, 17 Sep 2010 13:19:09 +0000 (15:19 +0200)
committerGuillaume (ioguix) de Rorthais <ioguix@free.fr>
Fri, 17 Sep 2010 13:19:09 +0000 (15:19 +0200)
info.php

index 23d405c316a88ece3632b8405c87f3bdeec42b51..11b5bf1ffb35513ffd2f7e514fd4c71b6e5a2147 100644 (file)
--- a/info.php
+++ b/info.php
                                while (!$children->EOF) {
                                        $id = ( ($i % 2 ) == 0 ? '1' : '2' );
                                        echo "\t<tr class=\"data{$id}\">\n";
-                                       echo "\t\t<td>", $misc->printVal($children->fields['schemaname']), "</td>";
+                                       echo "\t\t<td>", $misc->printVal($children->fields['nspname']), "</td>";
                                        echo "<td>", $misc->printVal($children->fields['relname']), "</td>";
                                        echo "<td class=\"opbutton{$id}\"><a href=\"tblproperties.php?{$misc->href}",
-                                               "&amp;schema=", urlencode($children->fields['schemaname']),
+                                               "&amp;schema=", urlencode($children->fields['nspname']),
                                                "&amp;table=", urlencode($children->fields['relname']), "\">{$lang['strproperties']}</a></td>\n";
                                        echo "\t</tr>\n";
                                        $children->movenext();