* Fix bug of modify index of batch create.
This commit is contained in:
@@ -150,7 +150,7 @@ $(function()
|
||||
$select.next('.chosen-container').find('.chosen-drop').width($select.closest('td').width() + 50);
|
||||
}, 200);
|
||||
});
|
||||
var storyTitle = storyTitles && storyTitles[index];
|
||||
var storyTitle = storyTitles && storyTitles[index - 1];
|
||||
if (storyTitle !== undefined && storyTitle !== null)
|
||||
{
|
||||
$row.find('.input-story-title').val(storyTitle).after('<input type="hidden" name="uploadImage[' + index + ']" id="uploadImage[' + index + ']" value="' + imageTitles[storyTitle] + '">');
|
||||
|
||||
@@ -258,7 +258,7 @@ class taskModel extends model
|
||||
parse_str($extra, $output);
|
||||
|
||||
/* Judge whether the current task is a parent. */
|
||||
$parentID = !empty($this->post->parent[0]) ? $this->post->parent[0] : 0;
|
||||
$parentID = !empty($this->post->parent[1]) ? $this->post->parent[1] : 0;
|
||||
|
||||
foreach($tasks->story as $key => $storyID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user