diff --git a/module/story/control.php b/module/story/control.php index fd1e67ff0c..33e028a84c 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -1906,12 +1906,11 @@ class story extends control $productStoryList = array(); $productList = array(); $ignoreTwins = array(); - $twinsCount = 0; + $twinsCount = array(); foreach($stories as $story) { if(!empty($ignoreTwins) and isset($ignoreTwins[$story->id])) { - $twinsCount ++; unset($stories[$story->id]); continue; } @@ -1933,7 +1932,12 @@ class story extends control if(!empty($story->twins)) { - foreach(explode(',', trim($story->twins, ',')) as $twinID) $ignoreTwins[$twinID] = $twinID; + $twinsCount[$story->id] = 0; + foreach(explode(',', trim($story->twins, ',')) as $twinID) + { + $twinsCount[$story->id] ++; + $ignoreTwins[$twinID] = $twinID; + } } } diff --git a/module/story/view/batchclose.html.php b/module/story/view/batchclose.html.php index 41148cf959..3427bf860b 100755 --- a/module/story/view/batchclose.html.php +++ b/module/story/view/batchclose.html.php @@ -37,7 +37,7 @@ title;?> twins)):?> - story->twins}:"?> + story->twins}:"?> id]?> processStatus('story', $story);?>