Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Profile for Magron

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 17:28
  • Posts: 1
  • Profile Views: 2287
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
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
Bug in Document List ...
Category: Community Support
More
User Login Empty