* Fix bug of modify index of batch create.

This commit is contained in:
xieqiyu
2022-03-28 10:27:48 +08:00
parent 94c3233d5a
commit 41908ac69b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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] + '">');
+1 -1
View File
@@ -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)
{