From c6801757abba9f1c09ba7d538b06819295f46fe0 Mon Sep 17 00:00:00 2001 From: "rugingetcat.com" Date: Wed, 11 Mar 2020 14:56:15 +0500 Subject: [PATCH] Update controller.php --- crud/default/controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crud/default/controller.php b/crud/default/controller.php index d9ba58e..937d749 100755 --- a/crud/default/controller.php +++ b/crud/default/controller.php @@ -144,7 +144,7 @@ public function actionCreate() if (!$model->save()) { return self::error($model->getErrors()); } - self::createLog(, serialize($model)); + self::createLog(, serialize($model)); return self::ok($model); } @@ -188,7 +188,7 @@ public function actionDelete() } $model->deleted_at = date('Y-m-d H:i:s'); if ($model->update()) { - self::deleteLog(, $id); + self::deleteLog(, $id); return self::ok(); } else { self::error($model->getErrors()); @@ -235,7 +235,7 @@ public function actionRestore() } $model->deleted_at = null; if ($model->update()()) { - self::restoreLog(, $id); + self::restoreLog(, $id); return self::ok(); } else { self::error($model->getErrors()); @@ -293,7 +293,7 @@ public function actionUpdate() } ?> if ($model->save()) { - self::updateLog(, $id); + self::updateLog(, $id); return self::ok($model); } return self::error($model->getErrors());