Skip to content

Commit d7a0d9f

Browse files
committed
issue 描述 不能包含特殊字符,所以只能屏蔽
1 parent 8226948 commit d7a0d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/zentao/nb/resource/Issue.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function fetchAll($format = 'json') {
5454
'author' => array('id' => $opened_user->id, 'name' => $issue->openedBy), //TODO
5555
'category' => array('id' => $type_id, 'name' => BugType::findLabelById($type_id)), //TODO
5656
'assigned_to' => array('id' => $assgined_user->id, 'name' => $issue->assignedTo), //TODO
57-
'description' => $issue->steps,//
57+
'description' => '',//$issue->steps //有特殊符号会挂掉
5858
'start_date' => date('Y-m-d', strtotime($issue->assignedDate)),
5959
'due_date' => date('Y-m-d', strtotime($issue->assignedDate) + 1000000),
6060
'done_ratio' => 0,
@@ -96,7 +96,7 @@ public function fetch($id, $format = 'json') {
9696
'priority' => array('id' => (int)$issue->pri, 'name' => $issue->pri),
9797
'author' => array('id' => $opened_user->id, 'name' => $issue->openedBy),
9898
'assigned_to' => array('id' => $assgined_user->id, 'name' => $issue->assignedTo),
99-
'description' => '', //$issue->steps
99+
'description' => '',//$issue->steps //有特殊符号会挂掉
100100
'start_date' => date('Y-m-d', strtotime($issue->assignedDate)),
101101
'due_date' => date('Y-m-d', strtotime($issue->assignedDate) + 1000000),
102102
'done_ratio' => 0,

0 commit comments

Comments
 (0)