* Code for task #36041.
This commit is contained in:
@@ -357,7 +357,6 @@ class product extends control
|
||||
$this->lang->product->switcherMenu = $this->product->getSwitcher($productID);
|
||||
$this->lang->product->mainMenuAction = $this->product->getProductMainAction();
|
||||
|
||||
|
||||
/* Init vars. */
|
||||
$product = $this->product->getById($productID);
|
||||
$notRemovePRJ = array();
|
||||
@@ -480,7 +479,7 @@ class product extends control
|
||||
$this->view->rdUsers = $rdUsers;
|
||||
$this->view->users = $this->user->getPairs('nodeleted|noclosed');
|
||||
$this->view->programs = array('') + $this->loadModel('program')->getTopPGMPairs();
|
||||
$this->view->lines = array('') + $this->product->getLinePairs($product->program);
|
||||
$this->view->lines = $product->program ? array('') + $this->product->getLinePairs($product->program) : array();
|
||||
$this->view->URSRPairs = $this->loadModel('custom')->getURSRPairs();
|
||||
$this->view->canChangePGM = $canChangePGM;
|
||||
$this->view->singleLinkProjects = $singleLinkProjects;
|
||||
@@ -984,7 +983,7 @@ class product extends control
|
||||
$this->loadModel('program');
|
||||
$this->session->set('productList', $this->app->getURI(true));
|
||||
|
||||
/* Init vars. */
|
||||
/* Process product structure. */
|
||||
$productStructure = array();
|
||||
$productStats = $this->product->getStats($orderBy, '', $browseType, '', 'story');
|
||||
|
||||
|
||||
@@ -12,11 +12,6 @@ $(function()
|
||||
$('#program').trigger("chosen:updated");
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
$('#program').change(function()
|
||||
{
|
||||
var programID = $(this).val();
|
||||
|
||||
$.get(createLink('product', 'ajaxGetLine', 'programID=' + programID), function(data)
|
||||
{
|
||||
|
||||
@@ -80,9 +80,9 @@
|
||||
<?php foreach($program as $lineID => $line):?>
|
||||
<?php if(isset($line['lineName'])):?>
|
||||
<?php
|
||||
$trAttrs = "data-id='line.$lineID' data-parent='program.$programID'";
|
||||
$trClass .= ' is-nest-child table-nest';
|
||||
$trAttrs .= " data-nest-parent='program.$programID' data-nest-path='program.$programID,$lineID'";
|
||||
$trAttrs = "data-id='line.$lineID' data-parent='program.$programID'";
|
||||
$trClass .= ' is-nest-child table-nest';
|
||||
$trAttrs .= " data-nest-parent='program.$programID' data-nest-path='program.$programID,$lineID'";
|
||||
?>
|
||||
<tr <?php echo $trAttrs;?>>
|
||||
<td colspan="14">
|
||||
|
||||
Reference in New Issue
Block a user