[#6096] sql-storage and $_prefs['rules']
Summary sql-storage and $_prefs['rules']
Queue Ingo
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners Jan Schneider <jan (at) horde (dot) org>
Requester tinu (at) humbapa (dot) ch
Created 01/09/2008 (123 days ago)
Due
Updated 02/26/2008 (75 days ago)
Assigned 01/09/2008 (123 days ago)
Resolved 02/26/2008 (75 days ago)
Attachments sql.php.patch Download
Milestone
Patch

History
02/26/2008 Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Tweaked to use Prefs::getDefault() because we don't want to get any left-overs that might be in the preferences backend, but really the default values from config/prefs.php.
01/09/2008 Chuck Hagenbuch State ⇒ Assigned
Assigned to Jan Schneider
 
01/09/2008 tinu (at) humbapa (dot) ch Comment #1
New Attachment: sql.php.patch Download
Queue ⇒ Ingo
Summary ⇒ sql-storage and $_prefs['rules']
Type ⇒ Bug
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Reply to this comment
I define some default rules via the unserialized array in $_prefs['rules']['value'] at ingo/config/prefs.php.

when I use the sql-storage-driver the init() methode from the Ingo_Storage_filters_sql object adds some default data to the table_rules table when running for the first time. my small patch now also consider the rules from the prefs-rules settings.
I copied most of the code from the prefs-storage-driver who already does this.

thanks!