* Fix issue of metric-edit.

This commit is contained in:
zhouxin
2023-09-13 14:20:11 +08:00
parent b120f3ac22
commit a7972989f7
+1 -1
View File
@@ -74,7 +74,7 @@ class metric extends control
$metricData = $this->metricZen->buildMetricForEdit();
$metricID = $this->metric->update($id, $metricData);
if(empty($metricID) || dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
$response = $this->metricZen->responseAfterEdit();
return $this->send($response);