* adjust for ajax get story when create case.
This commit is contained in:
@@ -955,7 +955,7 @@ class story extends control
|
||||
$storyStatus = array_keys($storyStatus);
|
||||
}
|
||||
|
||||
$stories = $this->story->getProductStoryPairs($productID, $moduleID, $storyStatus);
|
||||
$stories = $this->story->getProductStoryPairs($productID, $moduleID, $storyStatus, 'id_desc');
|
||||
$result = array();
|
||||
$i = 0;
|
||||
foreach ($stories as $id => $story)
|
||||
|
||||
@@ -81,7 +81,7 @@ $(function()
|
||||
if(key && key != $searchInput.data('lastkey'))
|
||||
{
|
||||
$searchResult.empty().append('<li class="loading"><i class="icon-spin icon-spinner icon-2x"></i></li>');
|
||||
var link = createLink('story', 'ajaxSearchProductStories', 'key=' + key + '&productID=' + $('#product').val() + '&moduleID=' + $('#module').val() + '&storyID=0&status=noclosed&limit=20');
|
||||
var link = createLink('story', 'ajaxSearchProductStories', 'key=' + key + '&productID=' + $('#product').val() + '&moduleID=' + $('#module').val() + '&storyID=0&status=noclosed&limit=50');
|
||||
$.getJSON(link, function(result)
|
||||
{
|
||||
$searchResult.empty();
|
||||
|
||||
Reference in New Issue
Block a user