Anonymous Login
2020-06-04 23:40 PDT

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0000289Third-party ModulesTimecardpublic2014-04-05 17:39
Assigned Topedroa 
Product Version 
Target VersionFixed in Version 
Summary0000289: Restrict combobox in "Add log" tab in TimeCard to active projects
DescriptionSince project list can grow big in the combo box of add log tab in TimeCard, I would suggest to select only active projects (project_active = 1).
Additional InformationIf you use the getAllowedProjects method on the Projects class, you can have the system get the data for you... respecting permissions of course.
You can see it in action in ./modules/calendar/addedit.php around line 100.
TagsNo tags attached.
Attached Files




caseydk (administrator)

This is an easy one. Your code should look something like this:

$prj = new CProject();
$projects = $prj->getAllowedProjects($AppUI->user_id);

It automatically filters according to the permissions and if you don't specify a second parameter, it will default to just getting active projects.


caseydk (administrator)

Ping? Any update?

-Issue History
Date Modified Username Field Change
2009-10-16 01:35 MiraKlim New Issue
2009-10-16 01:35 MiraKlim Status new => assigned
2009-10-16 01:35 MiraKlim Assigned To => MiraKlim
2009-11-17 20:38 caseydk Note Added: 0000592
2010-02-26 22:17 caseydk Note Added: 0000762
2011-02-22 01:45 pedroa Assigned To MiraKlim => pedroa
2014-04-05 17:39 caseydk Category General => Timecard
2014-04-05 17:39 caseydk Summary Restrict combobox in "Add log" tab in TimCard to active projects => Restrict combobox in "Add log" tab in TimeCard to active projects
+Issue History