MantisBT - v1.2 Release (Closed)
View Issue Details
0000333v1.2 Release (Closed)[All Projects] Generalpublic2009-12-15 04:192010-01-06 19:52
Assigned Tocaseydk 
PlatformOSOS Version
Product Version1.2 
Target VersionFixed in Version1.2.1 
Summary0000333: Can't see documents under documents TAB
DescriptionWhen on a Project view in Projects module, clicking on Documents tab doesn't show any document.

*Sorry if this is already solved in any revision...(I checked though) I get a little paranoid - I'm getting used to this Mantis-, with the idea of repeating solved issues...don't mean to piss anyone :P

TagsNo tags attached.
Attached Files

2009-12-16 09:09   
Hi, I install W2p in Windows and linux (slackware 13.0) servers with the same problem.

Files are displaying in files menu, but don't display in
project->files tab
task->files tab

thanks in advance.

2009-12-17 21:46   
Tracked down that the problem is how the autoloader files:
-- the CFileFolder doesn't follow the naming convention we have, hardcoded it in autoloader;
-- the getIcon function is included in the class file despite not being a method, a dummy class load was included to close this;

This is resolved in r861.
2009-12-18 00:57   
(Last edited: 2009-12-18 01:01)
Modifying main_funtions.php from revision 861 results in no fields displayed in Projects Module, Organizations module (under name, date, etc). Nor Project Fields (or Tabs/Plane View fields) are not shown.

Companies and Departments are not displayed either...

Task can be accessed from Task modules but no tabs are displayed under when clicking on a task though....

someone else experiences the same after applying r861?

2009-12-18 05:01   
Ah, there have been some other changes, so you can't go directly to r861.

The solution:

* Update (well, rollback) your main_functions.php to r844 (the v1.2 release);
* Edit your main_functions.php and add these lines:

case 'cfilefolder':
  require_once W2P_BASE_DIR.'/modules/files/files.class.php';

Just before the line that has:


in the __autoload() function. This should be around line 58 or so.

The other changes that are breaking your current stuff are helper functions that auto-link url's in description fields and some other things. They'll be great additions for v1.3.
2009-12-19 17:37   
Follow steps as described instead of updating to 861.
2009-12-23 06:57   
(Last edited: 2009-12-23 06:59)
This solution works for "Project Module - Files Tab", but I noticed that for "Task View - Files Tab" nothing has files are displayed. When a file is linked to a task you can not see it in "Task View - Files Tab" ...or maybe I'm misunderstanding the steps to fix it. I followed last caseydk post (0000673).


2009-12-23 20:41   
Around line 224 of ./modules/files/index_table.php, find this line:

$file_icon = getIcon($file_row['file_type']);

Immediately before that add this line:

$myFile = new CFile();

And let me know if that takes care of it.
2009-12-24 20:34   
Merged the relevant changes from r844 and r861 in r882 into the version1.2.x branch in svn. A new release should come early next week.
2009-12-28 03:55   
Thanx a lot caseydk...your post (0000682) definitely did the trick for I can see files under documents tabs.

Thanks for your nice work!!!
2009-12-28 05:55   
If it's fixed, don't reopen it. ;)
2010-01-06 19:52   
In v1.2.1 release.

Issue History
2009-12-15 04:19FranNew Issue
2009-12-16 09:09lianNote Added: 0000659
2009-12-16 10:32caseydkStatusnew => assigned
2009-12-16 10:32caseydkAssigned To => caseydk
2009-12-17 21:46caseydkStatusassigned => resolved
2009-12-17 21:46caseydkResolutionopen => fixed
2009-12-17 21:46caseydkNote Added: 0000664
2009-12-18 00:57FranStatusresolved => feedback
2009-12-18 00:57FranResolutionfixed => reopened
2009-12-18 00:57FranNote Added: 0000668
2009-12-18 01:01FranNote Edited: 0000668
2009-12-18 05:01caseydkNote Added: 0000669
2009-12-19 17:37caseydkStatusfeedback => resolved
2009-12-19 17:37caseydkResolutionreopened => fixed
2009-12-19 17:37caseydkNote Added: 0000673
2009-12-23 06:57FranStatusresolved => feedback
2009-12-23 06:57FranResolutionfixed => reopened
2009-12-23 06:57FranNote Added: 0000681
2009-12-23 06:59FranNote Edited: 0000681
2009-12-23 20:41caseydkNote Added: 0000682
2009-12-24 20:34caseydkStatusfeedback => resolved
2009-12-24 20:34caseydkResolutionreopened => fixed
2009-12-24 20:34caseydkNote Added: 0000684
2009-12-28 03:55FranStatusresolved => feedback
2009-12-28 03:55FranResolutionfixed => reopened
2009-12-28 03:55FranNote Added: 0000699
2009-12-28 05:55caseydkStatusfeedback => resolved
2009-12-28 05:55caseydkResolutionreopened => fixed
2009-12-28 05:55caseydkNote Added: 0000700
2010-01-06 19:52caseydkNote Added: 0000731
2010-01-06 19:52caseydkStatusresolved => closed
2010-01-06 19:52caseydkFixed in Version => 1.2.1