Репозиторий ALT Linux backports/2.4
Последнее обновление: 9 июля 2008 | Пакетов: 497 | Посещений: 1575012
 поиск   регистрация   авторизация 
 
Группа :: Сети/WWW
Пакет: bugzilla

 Главная   Изменения   Спек   Патчи   Загрузить   Bugs and FR 

Патч: bugzilla-editproducts-minimize.patch


diff -uNr bugzilla-2.16.3-dist/editproducts.cgi bugzilla-2.16.3/editproducts.cgi
--- bugzilla-2.16.3-dist/editproducts.cgi	2003-05-16 12:58:21 +0400
+++ bugzilla-2.16.3/editproducts.cgi	2003-05-16 13:42:13 +0400
@@ -743,18 +743,12 @@
     print "</TR><TR VALIGN=top>\n";
     print "  <TH ALIGN=\"right\"><A HREF=\"editcomponents.cgi?product=", url_quote($product), "\">Edit components:</A></TH>\n";
     print "  <TD>";
-    SendSQL("SELECT value,description
+    SendSQL("SELECT COUNT(*)
              FROM components
              WHERE program=" . SqlQuote($product));
     if (MoreSQLData()) {
-        print "<table>";
-        while ( MoreSQLData() ) {
-            my ($component, $description) = FetchSQLData();
-            $description ||= "<FONT COLOR=\"red\">description missing</FONT>";
-            print "<tr><th align=right valign=top>$component:</th>";
-            print "<td valign=top>$description</td></tr>\n";
-        }
-        print "</table>\n";
+        my ($count) = FetchSQLData();
+        print "$count";
     } else {
         print "<FONT COLOR=\"red\">missing</FONT>";
     }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005