projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
07947bf
)
DataObjects/Core_person.php
author
Alan Knowles
<alan@roojs.com>
Mon, 15 Oct 2018 06:28:05 +0000
(14:28 +0800)
committer
Alan Knowles
<alan@roojs.com>
Mon, 15 Oct 2018 06:28:05 +0000
(14:28 +0800)
DataObjects/Core_person.php
patch
|
blob
|
history
diff --git
a/DataObjects/Core_person.php
b/DataObjects/Core_person.php
index
028bb3b
..
df2eaf8
100644
(file)
--- a/
DataObjects/Core_person.php
+++ b/
DataObjects/Core_person.php
@@
-485,7
+485,6
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
// we should not store the whole data in the session - otherwise it get's huge.
$p = DB_DAtaObject::Factory($this->tableName());
// we should not store the whole data in the session - otherwise it get's huge.
$p = DB_DAtaObject::Factory($this->tableName());
- $p->autoJoin();
$p->get($this->pid());
$d = $p->toArray();
$p->get($this->pid());
$d = $p->toArray();
@@
-496,7
+495,11
@@
class Pman_Core_DataObjects_Core_person extends DB_DataObject
//var_dump(array(get_class($this),$sesPrefix .'-auth'));
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object)$d);
//var_dump(array(get_class($this),$sesPrefix .'-auth'));
$_SESSION[get_class($this)][$sesPrefix .'-auth'] = serialize((object)$d);
- self::$authUser = $p;
+ $pp = DB_DAtaObject::Factory($this->tableName());
+ $pp->get($this->pid());
+ $pp->autoJoin();
+
+ self::$authUser = $pp;
// ensure it's written so that ajax calls can fetch it..
// ensure it's written so that ajax calls can fetch it..