Closed (fixed)
Project:
Bio
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2007 at 20:03 UTC
Updated:
17 Oct 2007 at 20:26 UTC
When you're using Bio without Views, it errors when you're saving the settings because it assumes that there's a views_invalidate_cache() function.
In function bio_settings_validate_xxx($form_id, $form_values), it should check whether Views is available....
/*
* A submit handler for the bio settings page so that we can invalidate the views
* cache in case the bio node type changed. We need the _xxx suffix to keep it
* from interfering with the #base in system_settings_form. Also, we do it in the
* validate phase because submits were interfering with the #base attribute. Yuck.
*/
function bio_settings_validate_xxx($form_id, $form_values) {
if (module_exists('views')) {
views_invalidate_cache();
}
}
Comments
Comment #1
robloachFixed in here
Comment #2
(not verified) commented