Menu Content

Support

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

Bug in Document List with multiple folder levels
(1 viewing) (1) Guest
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 11 years, 3 months ago #40911

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

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

  • jitr
  • OFFLINE
  • ARTIO Support
  • Posts: 1432
Thanks, we will intergrate your fix into the next version.
ARTIO Support Team
  • Page:
  • 1
User Login Empty