From 308c8be4a48b80eee8e27a3018497639c1e71a80 Mon Sep 17 00:00:00 2001 From: Nathan Coad Date: Sat, 9 Sep 2017 19:45:40 +1000 Subject: [PATCH] bugfix --- booking.regn_node.inc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/booking.regn_node.inc b/booking.regn_node.inc index c5ae667..3ee279b 100644 --- a/booking.regn_node.inc +++ b/booking.regn_node.inc @@ -295,18 +295,10 @@ function booking_insert($node) { $data = array(); //$default_keys = array('nid', 'type', 'language', 'created', 'promote', 'changed', 'status', 'title'); - //no longer required since we do this in the form submit hook - /* - foreach ($node as $key => $value) { - //check if the key is a field that belongs in the database - if ((strpos($key, "booking_") === 0) || $key === "nid") { - $data[$key] = _booking_remove_emoji($value); - } - } - */ - watchdog('booking_debug', "
Inserting node:\n@info
", array('@info' => print_r($data, TRUE))); + + watchdog('booking_debug', "
Inserting node:\n@info
", array('@info' => print_r($node, TRUE))); //watchdog('booking_debug', "
Sanitised data:\n@info
", array('@info' => print_r($data, TRUE))); - db_insert('booking_person')->fields($data)->execute(); + db_insert('booking_person')->fields($node)->execute(); /* db_insert('booking_person')