[thirdparty-commits] jpeeler: mantis/trunk r111 - /mantis/trunk/

SVN commits to the Digium third-party software repository thirdparty-commits at lists.digium.com
Tue May 12 13:47:01 CDT 2009


Author: jpeeler
Date: Tue May 12 13:46:58 2009
New Revision: 111

URL: http://svn.asterisk.org/svn-view/thirdparty?view=rev&rev=111
Log:
Fix karma hall of fame page to work again, forget about it in r59.

Modified:
    mantis/trunk/karma_halloffame.php
    mantis/trunk/mantis_karma.php

Modified: mantis/trunk/karma_halloffame.php
URL: http://svn.asterisk.org/svn-view/thirdparty/mantis/trunk/karma_halloffame.php?view=diff&rev=111&r1=110&r2=111
==============================================================================
--- mantis/trunk/karma_halloffame.php (original)
+++ mantis/trunk/karma_halloffame.php Tue May 12 13:46:58 2009
@@ -90,7 +90,7 @@
         echo helper_alternate_class();
         echo ">";
         echo "        <TD CLASS=\"center\">$t_rows_done</TD>\n";
-        echo "        <TD><A HREF=\"karma_view_transactions.php?id=$t_user_id\">$t_username</A></TD>\n";
+        echo "        <TD><A HREF=\"karma_view_transactions.php?user_id=$t_user_id&bug_id=0\">$t_username</A></TD>\n";
         echo "        <TD CLASS=\"center\">+$t_karma_score</TD>\n";
         echo "        <TD CLASS=\"center\">$t_date</TD>\n";
     }
@@ -159,7 +159,7 @@
             echo helper_alternate_class();
             echo ">";
             echo "        <TD CLASS=\"center\">$t_rows_done</TD>\n";
-            echo "        <TD><A HREF=\"karma_view_transactions.php?id=$t_user_id\">$t_username</A></TD>\n";
+            echo "        <TD><A HREF=\"karma_view_transactions.php?user_id=$t_user_id&bug_id=0\">$t_username</A></TD>\n";
             echo "        <TD CLASS=\"center\">$t_karma_score</TD>\n";
             echo "        <TD CLASS=\"center\">$t_date</TD>\n";
         }

Modified: mantis/trunk/mantis_karma.php
URL: http://svn.asterisk.org/svn-view/thirdparty/mantis/trunk/mantis_karma.php?view=diff&rev=111&r1=110&r2=111
==============================================================================
--- mantis/trunk/mantis_karma.php (original)
+++ mantis/trunk/mantis_karma.php Tue May 12 13:46:58 2009
@@ -177,7 +177,10 @@
     if ($t_rows_found == 0) {
 		$t_bug_id = (int)$p_bug_id;
         echo "No karma transactions found!\t";
-		echo print_bracket_link( "bug_view_page.php?bug_id=$t_bug_id", "Return to bug view page" );
+		if ($t_bug_id != 0)
+			echo print_bracket_link( "bug_view_page.php?bug_id=$t_bug_id", "Return to bug view page" );
+		else
+			echo print_bracket_link( "karma_halloffame.php", "Return to karma hall of fame page" );
 		echo "<BR>\n";
     } else {
 
@@ -187,7 +190,10 @@
         echo "        <TD CLASS=\"form-title\" COLSPAN=\"4\">Viewing karma score transactions for bug ";
         echo bug_format_id($p_bug_id);
         echo " <SPAN CLASS=\"small\">";
-        echo print_bracket_link( "bug_view_page.php?bug_id=$p_bug_id", "Return to bug view page" );
+		if ($t_bug_id != 0)
+        	echo print_bracket_link( "bug_view_page.php?bug_id=$p_bug_id", "Return to bug view page" );
+		else
+			echo print_bracket_link( "karma_halloffame.php", "Return to karma hall of fame page" );
         echo "</SPAN></TD>\n";
         echo "    </TR>\n";
         echo "    <TR CLASS=\"row-category\">\n";
@@ -549,7 +555,10 @@
     if ($t_rows_found == 0) {
 		$t_bug_id = (int)$p_bug_id;
         echo "<B>ERROR:</B> No karma transactions found!\t";
-		echo print_bracket_link( "bug_view_page.php?bug_id=$t_bug_id", "Return to bug view page" );
+		if ($t_bug_id != 0)
+			echo print_bracket_link( "bug_view_page.php?bug_id=$t_bug_id", "Return to bug view page" );
+		else
+			echo print_bracket_link( "karma_halloffame.php", "Return to karma hall of fame page" );
 		echo "<BR>\n";
     } else {
 
@@ -558,7 +567,10 @@
         echo "    <TR>\n";
         echo "        <TD CLASS=\"form-title\" COLSPAN=\"4\">Viewing karma score transactions for $t_user_name ($t_user_karma_score)\n";
         echo " <SPAN CLASS=\"small\">";
-        echo print_bracket_link( "bug_view_page.php?bug_id=$p_bug_id", "Return to bug view page" );
+		if ($t_bug_id != 0)
+        	echo print_bracket_link( "bug_view_page.php?bug_id=$p_bug_id", "Return to bug view page" );
+		else
+			echo print_bracket_link( "karma_halloffame.php", "Return to karma hall of fame page" );
         echo "</SPAN></TD>\n";
         echo "    </TR>\n";
         echo "    <TR CLASS=\"row-category\">\n";




More information about the thirdparty-commits mailing list