summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bdeed4d)
raw | patch | inline | side by side (parent: bdeed4d)
author | blainett <blainett@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jun 2005 11:07:19 +0000 (11:07 +0000) | ||
committer | blainett <blainett@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Jun 2005 11:07:19 +0000 (11:07 +0000) |
Added checks of new creation of modified, get the uid from GOsa object or from the same object.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@692 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@692 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/connectivity/class_oxchangeAccount.inc | patch | blob | history |
diff --git a/plugins/personal/connectivity/class_oxchangeAccount.inc b/plugins/personal/connectivity/class_oxchangeAccount.inc
index 1fddc4935acb993eaf51c7c4f1988d5cd9bbfbb8..864dc0d882a45a6a1ebf3e4c0e7addcfddce87ef 100644 (file)
/* Show tab dialog headers */
$display= "";
+ if ($this->parent != NULL){
+ if ($this->is_account){
+ $display="";
+ } else {
+ $obj= $this->parent->by_object['posixAccount'];
+ $obj2= $this->parent->by_object['mailAccount'];
+ if (! $obj->is_account){
+ $display= "<BR><BR><CENTER>"._("This account has <b>OpenXchange</b> features disabled. Posix features are needed for openXchange accounts, enable them first.")."</CENTER><BR><BR>";
+
+ } else {
+ if (! $obj2->is_account){
+ $display= "<BR><BR><CENTER>"._("This account has <b>OpenXchange</b> features disabled. Mail features are needed for openXchange accounts, enable them first.")."</CENTER><BR><BR>";
+ return ($display);
+ }
+ }
+ }
+ }
/* Show main page */
$smarty= get_smarty();
$needupdate=TRUE;
/*First at all, we must check if this is new or is updated */
- foreach ($this->attrs['objectClass'] as $object){
- if($object=="OXUserObject") $needupdate=FALSE;
+ if (isset($this->attrs['objectClass'])){
+ foreach ($this->attrs['objectClass'] as $object){
+ if($object=="OXUserObject") $needupdate=FALSE;
+ }
+ $uid=$this->attrs[$this->dnmode][0];
+ }else{
+
+ if($this->dnmode="uid") $uid=$this->parent->by_object['user']->uid;
+ else $uid=$this->parent->by_object['user']->sn." ".$this->parent->by_object['user']->givenName;
}
if($needupdate){
}
}
- $uid=$this->attrs[$this->dnmode][0];
+
plugin::save();