Opened 8 years ago

Closed 7 years ago

#1448 closed defect (fixed)

PATCH: linker error with only one folder, a[b.id] is undefined

Reported by: guest Owned by:
Priority: normal Milestone: 0.96
Component: Plugins Version: trunk
Severity: normal Keywords: linker
Cc:

Description

I've modified the linker scan.php to work with other folders.
This works fine when using multiple folders.
If I only use one folder however I get this js error:

Error: a[b.id] is undefined
Source File: http://***/plugins/Linker/dTree/dtree.js
Line: 2

Example output from modified scan.php
=====================================

[
{

url: '/uploads',
children: [

{

url: '/uploads/file.jpg'

}

]

}
]

================

Adam J

Attachments (2)

dtree.js (13.0 KB) - added by guest 8 years ago.
dtree.2.js (447 bytes) - added by guest 8 years ago.
patch

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by guest

Changed 8 years ago by guest

patch

comment:1 Changed 8 years ago by guest

I'm confirming bug and attaching simple patch.

comment:2 Changed 8 years ago by guest

  • Summary changed from linker error with only one folder to PATCH: linker error with only one folder, a[b.id] is undefined

sorry, forgot to mark as PATCH :-)
cheers romus

comment:3 Changed 7 years ago by gogo

  • Resolution set to fixed
  • Status changed from new to closed

Patch seems harmless, applied changeset:1195

Note: See TracTickets for help on using tickets.