* [bug#30551,done,0.5h] Adjust params.
This commit is contained in:
@@ -1051,18 +1051,14 @@ class product extends control
|
||||
*
|
||||
* @param int $productID
|
||||
* @param string $branch
|
||||
* @param int $planID
|
||||
* @param string $fieldID
|
||||
* @param int $needCreate
|
||||
* @param string $expired
|
||||
* @param string $param
|
||||
* @param string $params
|
||||
* @param bool $skipParent
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function ajaxGetPlans(int $productID, string $branch = '', int $planID = 0, string $fieldID = '', int $needCreate = 0, string $expired = '', string $param = '')
|
||||
public function ajaxGetPlans(int $productID, string $branch = '', string $params = '', bool $skipParent = false)
|
||||
{
|
||||
$param = strtolower($param);
|
||||
$plans = $this->loadModel('productplan')->getPairs($productID, empty($branch) ? 'all' : $branch, $expired, strpos($param, 'skipparent') !== false);
|
||||
$plans = $this->loadModel('productplan')->getPairs($productID, empty($branch) ? 'all' : $branch, $params, $skipParent);
|
||||
|
||||
$items = array();
|
||||
foreach($plans as $id => $name)
|
||||
|
||||
Reference in New Issue
Block a user