[Tickets #1313] NEW: js error
bugs at bugs.horde.org
bugs at bugs.horde.org
Mon Feb 7 01:38:51 PST 2005
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=1313
-----------------------------------------------------------------------
Ticket | 1313
Created By | m.zdila at episoftware.com
Summary | js error
Queue | Turba
Version | 2.0
State | Unconfirmed
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
m.zdila at episoftware.com (2005-02-07 01:38) wrote:
in file templates/browse/column_headers.inc $prefs->getValue('sortdir')
returns for me empty string, therefore it generates invalid javascript code.
Tere is a patch:
13c13
< <a class="widget" href="" onclick="Sort(0, <?php echo
$prefs->getValue('sortdir') ?>); return false;"><?php echo
$attributes['name']['label'] ?></a>
---
> <a class="widget" href="" onclick="Sort(0, <?php echo
intval($prefs->getValue('sortdir')) ?>); return false;"><?php echo
$attributes['name']['label'] ?></a>
18c18
< <a class="widget" href="" onclick="Sort(<?php echo $i ?>, <?php
echo $prefs->getValue('sortdir') ?>); return false;"><?php echo
$attributes[$columns[$i-1]]['label'] ?></a>
---
> <a class="widget" href="" onclick="Sort(<?php echo $i ?>, <?php
echo intval($prefs->getValue('sortdir')) ?>); return false;"><?php echo
$attributes[$columns[$i-1]]['label'] ?></a>
More information about the bugs
mailing list