* code for task#1657.
This commit is contained in:
@@ -94,17 +94,25 @@ class productplan extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
$response['result'] = 'success';
|
||||
$response['message'] = '';
|
||||
|
||||
$plan = $this->productplan->getById($planID);
|
||||
$this->productplan->delete(TABLE_PRODUCTPLAN, $planID);
|
||||
if(dao::isError())
|
||||
|
||||
/* if ajax request, send result. */
|
||||
if($this->server->ajax)
|
||||
{
|
||||
$response['result'] = 'fail';
|
||||
$response['message'] = dao::getError();
|
||||
if(dao::isError())
|
||||
{
|
||||
$response['result'] = 'fail';
|
||||
$response['message'] = dao::getError();
|
||||
}
|
||||
else
|
||||
{
|
||||
$response['result'] = 'success';
|
||||
$response['message'] = '';
|
||||
}
|
||||
$this->send($response);
|
||||
}
|
||||
$this->send($response);
|
||||
die(js::locate(inlink('browse', "productID=$plan->product"), 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user