[turba] Turba Column Sorting Not Working

Lee lee at disinfo.com
Sun Jun 8 19:26:37 PDT 2003


We're running turba 1.2 with horde 2.2.3 and an ldap based preferences 
backend. For some reason the sort buttons throughout turba's interface 
don't work. When you click on the arrow the page just reloads without 
changing the sort order. I tried to trace the problem down and put some 
print statements in browse.php. What i found is that for some reason 
the following code doesnt have any effect:

/* Sort out the sorting values. */
if (($sortby = Horde::getFormData('sortby')) !== null) {
     if ($sortby == 'name') {
         $sortby = 'lastname';
     }
     $prefs->setValue('sortby', $sortby);  <-- This line
     $prefs->store(); <-- Or this line
}
if (($sortdir = Horde::getFormData('sortdir')) !== null) {
     $prefs->setValue('sortdir', $sortdir); <-- Or this line
     $prefs->store();  <-- Or this line
}

I tried printing the value of Horde::getFormData('sortby') and indeed 
it was correct based on which column was clicked on. However if I tried 
calling $prefs->getValue('sortdir') after the above setValue() and 
store() i still get a null. So essentially either setValue or store 
isnt working here. The weird thing is that all the other turba options 
work perfectly. I can update them without a problem, and they have the 
effect they're supposed to. I can't figure out why the sortdir and 
sortby prefs don't get set or stored.

Anybody have this problem and / or a solutions?

Thanks,
Lee



More information about the turba mailing list