* Change return value for branch create.

This commit is contained in:
caoyanyi
2023-06-13 13:25:07 +08:00
parent 0c92c20904
commit be066ec03f
+2 -2
View File
@@ -65,10 +65,10 @@ class branch extends control
if($_POST)
{
$branchID = $this->branch->create($productID);
if(dao::isError()) return print(js::error(dao::getError()));
if(dao::isError()) return $this->sendError(dao::getError());
$this->loadModel('action')->create('branch', $branchID, 'Opened');
return print(js::reload('parent.parent'));
return $this->sendSuccess(array('load' => true, 'closeModal' => true));
}
$this->view->product = $this->loadModel('product')->getById($productID);