minor tweaks

This commit is contained in:
Nathan Coad
2018-01-18 11:52:46 +11:00
parent fb7084012c
commit 584376bf25
2 changed files with 13 additions and 30 deletions

View File

@@ -450,8 +450,9 @@ function booking_update($node) {
}
//make sure the name is the correct case
$data['booking_firstname'] = _booking_ucname($data['booking_firstname']);
$data['booking_lastname'] = _booking_ucname($data['booking_lastname']);
//not really needed for node updates since it now applies at node creation
//$data['booking_firstname'] = _booking_ucname($data['booking_firstname']);
//$data['booking_lastname'] = _booking_ucname($data['booking_lastname']);
watchdog('booking', 'Updating node: @info', array('@info' => var_export($data, TRUE)));
db_update('booking_person')->fields($data)->condition('nid', $node->nid)->execute();