From 394df4295ff3208d37c8086a6f04457e006dc265 Mon Sep 17 00:00:00 2001 From: Yagami Date: Fri, 9 Nov 2018 15:05:24 +0800 Subject: [PATCH] * Finish task #5092. --- module/bug/model.php | 2 +- module/company/view/browse.html.php | 2 +- module/productplan/view/browse.html.php | 2 +- module/project/view/bug.html.php | 2 +- module/project/view/build.html.php | 2 +- module/project/view/story.html.php | 2 +- module/release/view/browse.html.php | 2 +- module/story/model.php | 2 +- module/task/model.php | 2 +- module/testcase/model.php | 2 +- module/testreport/view/browse.html.php | 2 +- module/testsuite/view/browse.html.php | 2 +- module/testsuite/view/library.html.php | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/module/bug/model.php b/module/bug/model.php index fb7023fe82..68cb2ba965 100644 --- a/module/bug/model.php +++ b/module/bug/model.php @@ -2489,7 +2489,7 @@ class bugModel extends model case 'id': if($canBatchAction) { - echo html::checkbox('bugIDList', array($bug->id => sprintf('%03d', $bug->id))); + echo html::checkbox('bugIDList', array($bug->id => '')) . html::a(helper::createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id)); } else { diff --git a/module/company/view/browse.html.php b/module/company/view/browse.html.php index 1149a4081e..d3a8a89330 100644 --- a/module/company/view/browse.html.php +++ b/module/company/view/browse.html.php @@ -84,7 +84,7 @@ js::set('confirmDelete', $lang->user->confirmDelete); - account => sprintf('%03d', $user->id)));?> + account => '')) . html::a(helper::createLink('user', 'view', "account=$user->account"), sprintf('%03d', $user->id));?> id);?> diff --git a/module/productplan/view/browse.html.php b/module/productplan/view/browse.html.php index 0b750e27b4..6a7616ffc6 100644 --- a/module/productplan/view/browse.html.php +++ b/module/productplan/view/browse.html.php @@ -73,7 +73,7 @@ - id => sprintf('%03d', $plan->id)));?> + id => '')) . html::a(helper::createLink('productplan', 'view', "planID=$plan->id"), sprintf('%03d', $plan->id));?> id);?> diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php index 2a3b2dfd3b..77016937b0 100644 --- a/module/project/view/bug.html.php +++ b/module/project/view/bug.html.php @@ -78,7 +78,7 @@ - id => sprintf('%03d', $bug->id)));?> + id => '')) . html::a(helper::createLink('bug', 'view', "bugID=$bug->id"), sprintf('%03d', $bug->id));?> id);?> diff --git a/module/project/view/build.html.php b/module/project/view/build.html.php index 13fbdc5bff..6162088535 100644 --- a/module/project/view/build.html.php +++ b/module/project/view/build.html.php @@ -66,7 +66,7 @@
project->build;?>
- id);?> + id"), sprintf('%03d', $build->id));?> branchName) echo "{$build->branchName}"?> createLink('build', 'view', "build=$build->id"), $build->name);?> diff --git a/module/project/view/story.html.php b/module/project/view/story.html.php index d379a4d124..9aff3477b2 100644 --- a/module/project/view/story.html.php +++ b/module/project/view/story.html.php @@ -140,7 +140,7 @@ - id => sprintf('%03d', $story->id)));?> + id => '')) . html::a(helper::createLink('story', 'view', "storyID=$story->id"), sprintf('%03d', $story->id));?> id);?> diff --git a/module/release/view/browse.html.php b/module/release/view/browse.html.php index 5c024c99b8..003c318142 100644 --- a/module/release/view/browse.html.php +++ b/module/release/view/browse.html.php @@ -52,7 +52,7 @@ - id);?> + id"), sprintf('%03d', $release->id));?> id"), $release->name);?> createLink('build', 'view', "buildID=$release->buildID"), $release->buildName);?> type != 'normal'):?> diff --git a/module/story/model.php b/module/story/model.php index e955997fd3..6c61aee539 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -2336,7 +2336,7 @@ class storyModel extends model switch($id) { case 'id': - echo html::checkbox('storyIDList', array($story->id => sprintf('%03d', $story->id))); + echo html::checkbox('storyIDList', array($story->id => '')) . html::a(helper::createLink('story', 'view', "storyID=$story->id"), sprintf('%03d', $story->id)); break; case 'pri': echo ""; diff --git a/module/task/model.php b/module/task/model.php index 0f389788a8..17e26d4436 100644 --- a/module/task/model.php +++ b/module/task/model.php @@ -2446,7 +2446,7 @@ class taskModel extends model case 'id': if($canBatchAction) { - echo html::checkbox('taskIDList', array($task->id => sprintf('%03d', $task->id))); + echo html::checkbox('taskIDList', array($task->id => '')) . html::a(helper::createLink('task', 'view', "taskID=$task->id"), sprintf('%03d', $task->id)); } else { diff --git a/module/testcase/model.php b/module/testcase/model.php index 884b9a885d..382b597292 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -1361,7 +1361,7 @@ class testcaseModel extends model switch($id) { case 'id': - echo html::checkbox('caseIDList', array($case->id => sprintf('%03d', $case->id))); + echo html::checkbox('caseIDList', array($case->id => '')) . html::a(helper::createLink('testcase', 'view', "caseID=$case->id"), sprintf('%03d', $case->id)); break; case 'pri': echo ""; diff --git a/module/testreport/view/browse.html.php b/module/testreport/view/browse.html.php index f31529e013..4024ff332e 100644 --- a/module/testreport/view/browse.html.php +++ b/module/testreport/view/browse.html.php @@ -46,7 +46,7 @@ - id);?> + id"), sprintf('%03d', $report->id));?> id&from=$objectType"), $report->title)?> createdBy);?> createdDate, 2);?> diff --git a/module/testsuite/view/browse.html.php b/module/testsuite/view/browse.html.php index 50deb44d4d..e28eff0ac5 100644 --- a/module/testsuite/view/browse.html.php +++ b/module/testsuite/view/browse.html.php @@ -53,7 +53,7 @@ - id);?> + id"), sprintf('%03d', $suite->id));?> type == 'public') echo "{$lang->testsuite->authorList['public']} ";?> type == 'private') echo "{$lang->testsuite->authorList['private']} ";?> diff --git a/module/testsuite/view/library.html.php b/module/testsuite/view/library.html.php index e2407361c4..527c2a173c 100644 --- a/module/testsuite/view/library.html.php +++ b/module/testsuite/view/library.html.php @@ -125,7 +125,7 @@ js::set('flow', $config->global->flow); - id => sprintf('%03d', $case->id)));?> + id => '')) . html::a($this->createLink('testcase', 'view', "caseID=$case->id&version=$case->version"), sprintf('%03d', $case->id));?> id);?>