This commit is contained in:
wangyidong
2017-12-04 13:37:43 +08:00
parent 37aeaa887f
commit e2070d56b1
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -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);?>
+6
View File
@@ -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'));
}