Geeklog Bugtracker
Geeklog

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001041GeeklogBugspublic2009-11-23 06:442009-11-29 04:47
Reportercordiste 
Assigned Todhaun 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version1.6.1 
Target Version1.7.0Fixed in Version1.7.0 
Summary0001041: select daily digest and exclude topics is save
DescriptionWhen daily digest is available, if you select a topic from the list on the user settings page and save information, it is the exclude topics witch is save.

::Ben
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0001148)
cordiste (reporter)
2009-11-23 18:00

In usersettings.php line 622 change topics for etids could help
[code]
    // daily digest block
    if ($_CONF['emailstories'] == 1) {
        $user_etids = DB_getItem ($_TABLES['userindex'], 'etids',
                                  "uid = {$_USER['uid']}");
        if (empty ($user_etids)) { // an empty string now means "all topics"
            $etids = USER_getAllowedTopics();
            $user_etids = implode(' ', $etids);
        } elseif ($user_etids == '-') { // this means "no topics"
            $user_etids = '';
        }
        $tmp = COM_checkList($_TABLES['topics'], 'tid,topic', $permissions,
                             $user_etids, 'etids');
        $preferences->set_var('email_topic_checklist',
                str_replace($_TABLES['topics'], 'etids', $tmp));
        $preferences->parse('digest_block', 'digest', true);
    } else {
        $preferences->set_var('digest_block', '');
    }
[/code]
::Ben
User avatar (0001150)
dhaun (administrator)
2009-11-29 04:47

And here I was wondering why it worked for me. Turns out that str_replace fixes it - as long as your gl_topics table is called 'topics' (without the prefix) ...

Thanks for tracking it down!

- Issue History
Date Modified Username Field Change
2009-11-23 06:44 cordiste New Issue
2009-11-23 18:00 cordiste Note Added: 0001148
2009-11-29 04:22 dhaun Status new => assigned
2009-11-29 04:22 dhaun Assigned To => dhaun
2009-11-29 04:47 dhaun Target => not specified
2009-11-29 04:47 dhaun Note Added: 0001150
2009-11-29 04:47 dhaun Status assigned => resolved
2009-11-29 04:47 dhaun Resolution open => fixed
2009-11-29 04:47 dhaun Projection none => minor fix
2009-11-29 04:47 dhaun Fixed in Version => 1.6.2
2009-11-29 04:47 dhaun Target Version => 1.6.2


Copyright © 2000 - 2010 MantisBT Group
Hosted by pair.com
Powered by Mantis Bugtracker