r1372 + more code to make linkful stickers work
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 7 Dec 2007 00:32:39 +0000 (00:32 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 7 Dec 2007 00:32:39 +0000 (00:32 +0000)
inc/database.php
inc/interface.php

index e6fdeebb396285a25d9c34d4ece4fb196ed61147..87563a7889cff45e83c28d05fb151a3dd57d2f08 100644 (file)
@@ -1722,9 +1722,8 @@ function getAttrValues ($object_id)
                        case 'float':
                        case 'string':
                        case 'dict':
-                               $record['value'] = $row[$row['attr_type'] . '_value'];
-                               $record['o_value'] = parseWikiLink ($record['value'], 'o');
-                               $record['a_value'] = parseWikiLink ($record['value'], 'a');
+                               $record['value'] = parseWikiLink ($row[$row['attr_type'] . '_value'], 'o');
+                               $record['a_value'] = parseWikiLink ($row[$row['attr_type'] . '_value'], 'a');
                                $record['chapter_name'] = $row['chapter_name'];
                                $record['key'] = $row['uint_value'];
                                break;
index e374292b91c4bd7d89d3639780140baf8a93bbc1..16b5145133cbfd64b3454f9a5d2fc79e7a77ff48 100644 (file)
@@ -640,7 +640,7 @@ function renderRackObject ($object_id = 0)
                echo "<tr><td colspan=2 class=msg_error>Has problems</td></tr>\n";
        foreach (getAttrValues ($object_id) as $record)
                if (!empty ($record['value']))
-                       echo "<tr><th width='50%' class=opt_attr_th>${record['name']}:</th><td class=tdleft>${record['value']}</td></tr>\n";
+                       echo "<tr><th width='50%' class=opt_attr_th>${record['name']}:</th><td class=tdleft>${record['a_value']}</td></tr>\n";
        echo "</table><br>\n";
        finishPortlet();