View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0000289 | Third-party Modules | Timecard | public | 2009-10-16 01:35 | 2014-04-05 17:39 | ||||||||
Reporter | MiraKlim | ||||||||||||
Assigned To | pedroa | ||||||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||||||
Status | assigned | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0000289: Restrict combobox in "Add log" tab in TimeCard to active projects | ||||||||||||
Description | Since 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 Information | If 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. | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files |
|
![]() |
|
caseydk (administrator) 2009-11-17 20:38 |
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) 2010-02-26 22:17 |
Ping? Any update? |
![]() |
|||
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 |