6.0.0-RC7
6/27/26

[#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 2/7/05 (7810 days ago)
Due
Updated 2/9/05 (7808 days ago)
Assigned 2/7/05 (7810 days ago)
Resolved 2/9/05 (7808 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
331 Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS and 2.0.1.
5911 Jan Schneider Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
 
509 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