From: Alan Knowles Date: Wed, 23 May 2012 01:04:37 +0000 (+0800) Subject: Merge branch 'master' of http://git.roojs.com:8081/Pman.Core X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=291a88e8b709f2b6afc327bae141d2bd4f7ba9ab;hp=a86e437d0e331e3e833b6974ded515722ded8cd0 Merge branch 'master' of git.roojs.com:8081/Pman.Core --- diff --git a/DataObjects/I18n.php b/DataObjects/I18n.php index ac047a67..41bff066 100644 --- a/DataObjects/I18n.php +++ b/DataObjects/I18n.php @@ -240,7 +240,7 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject $list = $this->availableCodes($ltype); - + //print_r($list); foreach($list as $lkey) { // skip ones we know we have done... if (in_array($lkey, $complete)) { diff --git a/DataObjects/Person.php b/DataObjects/Person.php index 2f9b8dea..ae478968 100644 --- a/DataObjects/Person.php +++ b/DataObjects/Person.php @@ -574,12 +574,27 @@ class Pman_Core_DataObjects_Person extends DB_DataObject if ( $q['query']['not_in_directory'] > -1) { $tn_pd = DB_DataObject::Factory('ProjectDirectory')->tableName(); // can list current - so that it does not break!!! - $x->whereAdd("$tn_p.id NOT IN + $this->whereAdd("$tn_p.id NOT IN ( SELECT distinct person_id FROM $tn_pd WHERE project_id = " . $q['query']['not_in_directory'] . " AND company_id = " . $this->company_id . ')'); } } + + if (!empty($q['query']['role'])) { + // it's a Person list.. + // DB_DATaobjecT::debugLevel(1); + + // specific to project directory which is single comp. login + // + $tn_pd = DB_DataObject::Factory('ProjectDirectory')->tableName(); + // can list current - so that it does not break!!! + $this->whereAdd("$tn_p.id IN + ( SELECT distinct person_id FROM $tn_pd WHERE + role = '". $this->escape($q['query']['role']) ."' + )"); + + } if (!empty($q['query']['project_member_of'])) { diff --git a/I18n.php b/I18n.php index 64e3e931..d7e6f522 100644 --- a/I18n.php +++ b/I18n.php @@ -116,22 +116,24 @@ class Pman_Core_I18n extends Pman switch($s) { case 'Lang': + + $i->ltype = 'l'; $i->applyFilters($_REQUEST, $this->authUser, $this); - $this->jdata($i->toTransList('l', $lbits[0])); + $this->jdata($i->toTransList('l', implode('_',$lbits))); break; case 'Country': $i->ltype = 'c'; $i->applyFilters($_REQUEST, $this->authUser, $this); - $this->jdata($i->toTransList('c', $lbits[0])); + $this->jdata($i->toTransList('c', implode('_',$lbits))); break; case 'Currency': $i->ltype = 'm'; $i->applyFilters($_REQUEST, $this->authUser, $this); - $this->jdata($i->toTransList('m', $lbits[0])); + $this->jdata($i->toTransList('m', implode('_',$lbits))); break; case 'Timezone': diff --git a/JsCompile.php b/JsCompile.php index fbd94f66..6c88bcf8 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -86,6 +86,8 @@ class Pman_Core_JsCompile extends Pman // or the compressed version. // first expand files.. + echo "\n"; + $arfiles = array(); $ofiles = array(); foreach($files as $f) { @@ -119,9 +121,9 @@ class Pman_Core_JsCompile extends Pman echo ''."\n"; } - - + } + function packCss($basedir, $files, $output_url) { // this outputs