Menu Content

Support

> Forums, FAQs & Paid Support
Support forum for users using free edition of JoomDOC. These forums are mainly for mutual help between users.

NOTE: Due to our capacity limitations, ARTIO does not monitor this forum category regularly. If you want direct support from ARTIO, please start a ticket at Support Dashboard. If you have no support ticket available, you need to purchase it.
  • Page:
  • 1

TOPIC: Bug in Document List with multiple folder levels

Bug in Document List with multiple folder levels 12 years, 11 months ago #40911

  • Magron
  • OFFLINE
  • Posts: 1
Hi

We installed the latest version of JoomDOC 4 last weel and noticed that when creating menu items linking to document folders with 2 levels of subfolders or more, the forward slash was incorrectly transformed into {ds} and thus the link was not working.

I traced the error into the javascript generated by admin\models\fields\modal\documents.php by getInput: the regular expression should contains /g at the end so that all occurrences of {ds} are replaced by /

$script[] = ' document.id("' . $this->id . '_id").value = id.replace(/{ds}/g,"'.addslashes(DIRECTORY_SEPARATOR).'");';
$script[] = ' document.id("' . $this->id . '_name").value = title;';

instead of (original code)

$script[] = ' document.id("' . $this->id . '_id").value = id.replace(/{ds}/,"'.addslashes(DIRECTORY_SEPARATOR).'");';
$script[] = ' document.id("' . $this->id . '_name").value = title;';

Please fix the code in the next version

Cheers
Franck
The topic has been locked.

Re: Bug in Document List with multiple folder levels 12 years, 10 months ago #41319

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1430
Thanks, we will intergrate your fix into the next version.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty