From 1b5ea15549a4800e689ab9d3661530a2933109a0 Mon Sep 17 00:00:00 2001 From: William Mead Date: Thu, 15 Feb 2024 12:00:06 +0100 Subject: [PATCH] Fixed resource create --- htdocs/resource/class/dolresource.class.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/htdocs/resource/class/dolresource.class.php b/htdocs/resource/class/dolresource.class.php index e2de0f7addcc9..da59c1ec275d4 100644 --- a/htdocs/resource/class/dolresource.class.php +++ b/htdocs/resource/class/dolresource.class.php @@ -158,7 +158,21 @@ public function create(User $user, int $no_trigger = 0) $error = 0; // Clean parameters - $new_resource_values = [$this->ref, $this->address, $this->zip, $this->town, $this->description, $this->country_id, $this->state_id, $this->fk_code_type_resource, $this->note_public, $this->note_private]; + $new_resource_values = [ + $this->ref, + $this->address, + $this->zip, + $this->town, + $this->country_id, + $this->state_id, + $this->description, + $this->phone, + $this->email, + $this->max_users, + $this->fk_code_type_resource, + $this->note_public, + $this->note_private + ]; foreach ($new_resource_values as $key => $value) { if (isset($value)) { $new_resource_values[$key] = trim($value);