From 12559fad46c6eb32e6da10ed8673e5996b8a66b0 Mon Sep 17 00:00:00 2001 From: markjcrane Date: Mon, 22 Dec 2025 13:16:23 -0700 Subject: [PATCH] Add a comment on the render method - Removing deprecated code for the database save method --- app/provision/resources/classes/provision.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/provision/resources/classes/provision.php b/app/provision/resources/classes/provision.php index a192394ea7..fc71072caf 100644 --- a/app/provision/resources/classes/provision.php +++ b/app/provision/resources/classes/provision.php @@ -362,7 +362,7 @@ class provision { * it retrieves the corresponding device information and template. If not, it * attempts to assign a default template based on the user agent. * - * @return void + * @return mixed Returns the rendered provision template */ public function render() { // debug @@ -644,13 +644,8 @@ class provision { $p->add('device_edit', 'temp'); // save to the data - $this->database->app_name = 'devices'; - $this->database->app_uuid = '4efa1a1a-32e7-bf83-534b-6c8299958a8e'; - if (!empty($device_uuid)) { - $this->database->uuid($device_uuid); - } $this->database->save($array); - $message = $this->database->message; + //$message = $this->database->message; // remove the temporary permission $p->delete('device_add', 'temp');