* change moule to module.
This commit is contained in:
@@ -1638,14 +1638,14 @@ class testcase extends control
|
||||
$this->view->users = $this->loadModel('user')->getPairs('noletter');
|
||||
$this->display();
|
||||
}
|
||||
|
||||
/**
|
||||
* Export case getModuleByStory
|
||||
*
|
||||
* @params int $storyID
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public function ajaxGetStoryMoule($storyID)
|
||||
public function ajaxGetStoryModule($storyID)
|
||||
{
|
||||
$story = $this->dao->select('module')->from(TABLE_STORY)->where('id')->eq($storyID)->fetch();
|
||||
$moduleID = !empty($story) ? $story->module : 0;
|
||||
|
||||
@@ -12,7 +12,7 @@ $(document).on('change', '.storyChange', function()
|
||||
{
|
||||
var storyID = $(this).val();
|
||||
if(typeof(storyID) == 'undefined') storyID = 0;
|
||||
var link = createLink('testcase', 'ajaxGetStoryMoule', 'storyID=' + storyID);
|
||||
var link = createLink('testcase', 'ajaxGetStoryModule', 'storyID=' + storyID);
|
||||
var id = $(this).attr('id');
|
||||
var index = id.substring(5);
|
||||
$.get(link, function(json)
|
||||
|
||||
Reference in New Issue
Block a user