* Fix bug#30844.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,7 +37,7 @@
|
||||
<td title='<?php echo $story->title;?>' class='text-left'>
|
||||
<?php echo $story->title;?>
|
||||
<?php if(!empty($story->twins)):?>
|
||||
<span class='label label-outline label-badge'><?php echo "{$lang->story->twins}:"?> <span class='text-blue'><?php echo $twinsCount?></span></span>
|
||||
<span class='label label-outline label-badge'><?php echo "{$lang->story->twins}:"?> <span class='text-blue'><?php echo $twinsCount[$story->id]?></span></span>
|
||||
<?php endif;?>
|
||||
</td>
|
||||
<td class='story-<?php echo $story->status;?>'><?php echo $this->processStatus('story', $story);?></td>
|
||||
|
||||
Reference in New Issue
Block a user