index 6ecf100a82b692f842a45401ce994f025d0d5260..44cc74d6768d9a9d3423419967bc5bfd5d52bffe 100755 (executable)
--- a/include/class_opengw.inc
+++ b/include/class_opengw.inc
var $MAY = array( "salutation","firstname","description","degree",
"birthday","sex","street","zip","country","zipcity",
"state","name1","value_string","number","db_status",
var $MAY = array( "salutation","firstname","description","degree",
"birthday","sex","street","zip","country","zipcity",
"state","name1","value_string","number","db_status",
- "object_version","is_locked","LocationTeamID","TeamIDis");
+ "object_version","is_locked","LocationTeamID","TeamIDis","password");
var $LastError = "";
var $option = "";
var $LastError = "";
var $option = "";
$ret = array();
$qry = "SELECT is_person,is_account,is_intra_account,is_extra_account,
number,owner_id,object_version,company_id,template_user_id,is_locked,
$ret = array();
$qry = "SELECT is_person,is_account,is_intra_account,is_extra_account,
number,owner_id,object_version,company_id,template_user_id,is_locked,
- name,firstname,description,salutation,login,degree,birthday,sex
+ name,firstname,description,salutation,login,degree,birthday,sex
FROM person WHERE login='".$uid."';";
$res = $this->ogo->FetchAllRows($this->ogo->Query($qry));
$ret = $res[0];
FROM person WHERE login='".$uid."';";
$res = $this->ogo->FetchAllRows($this->ogo->Query($qry));
$ret = $res[0];
$arr = array( "company_id","object_version","owner_id","template_user_id",
"is_person","is_account","is_intra_account","is_extra_account",
"number","description","is_locked","login","name","name","firstname",
$arr = array( "company_id","object_version","owner_id","template_user_id",
"is_person","is_account","is_intra_account","is_extra_account",
"number","description","is_locked","login","name","name","firstname",
- "salutation","degree","birthday","sex","db_status");
+ "salutation","degree","birthday","sex","db_status","password");
$this->info['company_id'] = $this->ogo->gen_id();
$this->info['userID'] = "OGo".$this->info['company_id'];
foreach($arr as $attr){
$this->info['company_id'] = $this->ogo->gen_id();
$this->info['userID'] = "OGo".$this->info['company_id'];
foreach($arr as $attr){
$arr = array( "company_id","object_version","owner_id",
"template_user_id","is_person","is_account","is_intra_account",
"is_extra_account","number","description","is_locked","login","name",
$arr = array( "company_id","object_version","owner_id",
"template_user_id","is_person","is_account","is_intra_account",
"is_extra_account","number","description","is_locked","login","name",
- "firstname","salutation","degree","birthday","sex","db_status");
+ "firstname","salutation","degree","birthday","sex","db_status","password");
$this->info['company_id'] = $ist[0]['company_id'];
$this->info['userID'] = "OGo".$this->info['company_id'];
foreach($arr as $attr){
$this->info['company_id'] = $ist[0]['company_id'];
$this->info['userID'] = "OGo".$this->info['company_id'];
foreach($arr as $attr){
(SELECT company_id FROM team WHERE is_location_team=1));";
$arr = array("company_assignment_id","company_id","sub_company_id","db_status");
(SELECT company_id FROM team WHERE is_location_team=1));";
$arr = array("company_assignment_id","company_id","sub_company_id","db_status");
- foreach($this->info['TeamIDis'] as $TeamID){
- $this->info['company_id'] = $TeamID;
- $this->info['sub_company_id'] = $ist[0]['company_id'];
- $this->info['company_assignment_id']= $this->ogo->gen_id();
- foreach($arr as $attr){
- $add_company_assignment[$attr] = $this->info[$attr];
- }
- $QUERY[] = gen_syntax($add_company_assignment,"company_assignment","ADD",false);
- }
+ if(is_array($this->info['TeamIDis'])){
+ foreach($this->info['TeamIDis'] as $TeamID){
+ $this->info['company_id'] = $TeamID;
+ $this->info['sub_company_id'] = $ist[0]['company_id'];
+ $this->info['company_assignment_id']= $this->ogo->gen_id();
+ $add_company_assignment = array();
+ foreach($arr as $attr){
+ $add_company_assignment[$attr] = $this->info[$attr];
+ }
+ $QUERY[] = gen_syntax($add_company_assignment,"company_assignment","ADD",false);
+ }
+ }
$remove_all = false;
foreach($QUERY as $q ){
$remove_all = false;
foreach($QUERY as $q ){