[rt-users] How to reset Preferences -> Search options?

Jean-Sebastien Morisset jsmoriss at mvlan.net
Wed Apr 2 14:35:35 EDT 2008


On Wed, Apr 02, 2008 at 05:49:07PM +0000, Jean-Sebastien Morisset wrote:
> Hi everyone,
> 
> Is there a way to reset the user's Preferences -> Search options to the
> $DefaultSearchResultFormat? A "Defaults" button on the
> SearchOptions.html page, for example, could be handy.

I've been able to add the button, but it screws up the display some:

# diff ./share/html/Prefs/SearchOptions.html
./local/html/Prefs/SearchOptions.html
67a68,75
> <form method="post" action="SearchOptions.html">
>         <input type="hidden" class="hidden" name="Format"
>         value="<%$RT::DefaultSearchResultFormat%>" />
>         <input type="hidden" class="hidden" name="Order" value="ASC"
>         />
>         <input type="hidden" class="hidden" name="OrderBy" value="id"
>         />
>         <input type="hidden" class="hidden" name="RowsPerPage"
>         value="50" />
>         <& /Elements/Submit, Name => 'SavePreferences', Label =>
>         loc('Reset to Defaults') &>
> </form>
>

Any idea how I can tuck the "Save Changes" and "Reset to Defaults"
button together?

Thanks,
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <jsmoriss at mvlan.net>



More information about the rt-users mailing list