projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
DataObjects/ProjectDirectory.php
[Pman.Core]
/
DataObjects
/
ProjectDirectory.php
diff --git
a/DataObjects/ProjectDirectory.php
b/DataObjects/ProjectDirectory.php
index
4d9cf5c
..
05820a9
100644
(file)
--- a/
DataObjects/ProjectDirectory.php
+++ b/
DataObjects/ProjectDirectory.php
@@
-68,7
+68,14
@@
class Pman_Core_DataObjects_ProjectDirectory extends DB_DataObject
*/
function projects($au)
{
+ if (empty($au)) {
+ $p = DB_DataObject::Factory('Projects');
+ $p->get('code', '*PUBLIC');
+ return array($p->id);
+
+ }
$c = clone ($this);
+
if (is_array($au)) {
$c->whereAddIn('person_id', $au, 'int');
} else {