6.0.0-beta1
7/11/25

[#1313] js error
Summary js error
Queue Turba
Queue Version 2.0
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at)
Requester m.zdila (at) episoftware (dot) com
Created 02/07/2005 (7459 days ago)
Due
Updated 02/09/2005 (7457 days ago)
Assigned 02/07/2005 (7459 days ago)
Resolved 02/09/2005 (7457 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
02/09/2005 01:29:33 AM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS and 2.0.1.
02/07/2005 11:25:59 AM Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
02/07/2005 09:38:50 AM m (dot) zdila (at) episoftware (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ js error
Queue ⇒ Turba
Reply to this comment
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>

Saved Queries