* Fix bug #46453.
This commit is contained in:
@@ -110,16 +110,20 @@ if(!empty($execution->projectInfo->hasProduct) || $features['plan'])
|
||||
foreach($product->plans as $planIDList)
|
||||
{
|
||||
$planIDList = explode(',', $planIDList);
|
||||
$planIDList = array_filter($planIDList);
|
||||
foreach($planIDList as $planID)
|
||||
{
|
||||
if(!isset($planGroups[$productID][$planID])) continue;
|
||||
|
||||
$class = '';
|
||||
$class = 'clip';
|
||||
if(count($planIDList) <= 2) $class .= ' flex flex-1 w-0 items-center';
|
||||
if(count($planIDList) > 2) $class .= ' flex-none w-1/3';
|
||||
|
||||
if(count($plans) > 2) $class .= ' mt-2';
|
||||
if(count($plans) % 3 != 0) $class .= ' pl-4';
|
||||
if(count($plans) % 3 != 0) $class .= ' pl-6';
|
||||
$plans[] = div
|
||||
(
|
||||
setClass("flex-none w-1/3 clip {$class}"),
|
||||
setClass($class),
|
||||
icon('calendar mr-2'),
|
||||
a
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user