* fix bug #1279.
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
</th>
|
||||
<td class='w-p60'>
|
||||
<?php foreach($lang->menu as $menu):?>
|
||||
<?php if(!is_string($menu)) continue;?>
|
||||
<?php list($moduleName, $module) = explode('|', $menu);?>
|
||||
<?php if($module == 'my') continue;?>
|
||||
<?php $moduleName = strip_tags($moduleName);?>
|
||||
|
||||
@@ -220,6 +220,12 @@ class product extends control
|
||||
$productID = $this->product->create();
|
||||
if(dao::isError()) die(js::error(dao::getError()));
|
||||
$this->loadModel('action')->create('product', $productID, 'opened');
|
||||
|
||||
if(isset($this->config->global->flow) and $this->config->global->flow == 'onlyTest')
|
||||
{
|
||||
die(js::locate($this->createLink($this->moduleName, 'build', "productID=$productID"), 'parent'));
|
||||
}
|
||||
|
||||
die(js::locate($this->createLink($this->moduleName, 'browse', "productID=$productID"), 'parent'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user