From a7972989f721b647eefa7f6e018fe354fd5d619d Mon Sep 17 00:00:00 2001 From: zhouxin Date: Wed, 13 Sep 2023 14:19:58 +0800 Subject: [PATCH] * Fix issue of metric-edit. --- module/metric/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/metric/control.php b/module/metric/control.php index 7726efa6ed..baa0b80885 100755 --- a/module/metric/control.php +++ b/module/metric/control.php @@ -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);