Error when creating a tour
dharmatech - March 3, 2009 - 23:08
| Project: | Site tours with Amberjack |
| Version: | 5.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
Jump to:
Description
There's a syntax error in site_tour_admin_edit_submit(). Here's the diff to fix it.
--- site_tour.admin.inc.orig 2009-03-03 16:00:31.000000000 -0700
+++ site_tour.admin.inc 2009-03-03 16:01:02.000000000 -0700
@@ -305,7 +305,7 @@ function site_tour_admin_edit_submit($fo
}
else {
db_query('INSERT INTO {site_tour} (title, description, status, close_url, exit_url, skin, text_of, text_close,
- btn_prev, btn_next, close_btn_action, cover_body=, cover_click_close) VALUES("%s", "%s", %d, "%s", "%s", "%s",
+ btn_prev, btn_next, close_btn_action, cover_body, cover_click_close) VALUES("%s", "%s", %d, "%s", "%s", "%s",
"%s", "%s", "%s", "%s", "%s", "%s", "%s")', $tour->title, $tour->description, $tour->status, $tour->close_url,
$tour->exit_url, $tour->skin, $tour->text_of, $tour->text_close, $tour->btn_prev, $tour->btn_next,
$tour->close_btn_action, $tour->cover_body, $tour->cover_click_close);
#1
I agree with this one, and in fact I had to patch it locally, resulting in the same change also be present in the patch for http://drupal.org/node/370087