From 5efa5d738898b8fe33e976219fc1141bc9ca8cb6 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 17 Nov 2013 13:47:05 -0800 Subject: [PATCH] admin web: fix links for app version in result page --- html/inc/db_ops.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/html/inc/db_ops.inc b/html/inc/db_ops.inc index 16cfd9801a..61a562230c 100644 --- a/html/inc/db_ops.inc +++ b/html/inc/db_ops.inc @@ -1018,7 +1018,13 @@ function show_result_ops($result) { row("claimed credit", $result->claimed_credit); row("Granted credit", $result->granted_credit); row("Application", "appid\">".app_name_by_id($result->appid).""); - row("App version", "appid&clauses=version_num%3D$result->app_version_num\">".app_version_string($result).""); + if ($result->app_version_id > 0) { + $x1 = "app_version_id\">"; + $x2 = ""; + } else { + $x1 = $x2 = ""; + } + row("App version", $x1.app_version_string($result).$x2); row("App version ID", $result->app_version_id); row("Estimated GFLOPS", number_format($result->flops_estimate/1e9, 2)); row("Random",$result->random);