diff --git a/module/product/model.php b/module/product/model.php index 758f61f6ec..cd24953415 100644 --- a/module/product/model.php +++ b/module/product/model.php @@ -759,24 +759,6 @@ class productModel extends model ->stripTags($this->config->product->editor->edit['id'], $this->config->allowedTags) ->remove('uid,changeProjects,contactListMenu') ->get(); - - if($this->config->systemMode == 'new') - { - if($product->program != $oldProduct->program) - { - /* Link the projects stories under this product. */ - $unmodifiableProjects = $this->dao->select('t1.*')->from(TABLE_PROJECTSTORY)->alias('t1') - ->leftJoin(TABLE_PROJECT)->alias('t2')->on('t1.project = t2.id') - ->where('t1.product')->eq($productID) - ->andWhere('t2.type')->eq('project') - ->andWhere('t2.deleted')->eq('0') - ->fetchPairs('project', 'product'); - if(!empty($unmodifiableProjects)) - { - dao::$errors[] = $this->lang->product->changeProgramError; - return false; - } - } } $product = $this->loadModel('file')->processImgURL($product, $this->config->product->editor->edit['id'], $this->post->uid);