index ed4eb8a8212ffb4f3983c9227d389c744842ff4e..94837291c76489072db48533bcd38f4357165152 100644 (file)
$this->is_dialog=true;
}
- $_SESSION['objectinfo'] = $this->dn;
+ if($this->dn != "new"){
+ $_SESSION['objectinfo']= $this->dn;
+ }
+
+
/* Edit selected Sub Object */
if((isset($_POST['EditSubObject']))&&(isset($_POST['SubObject']))){
$this->dialog= new $this->subClassName($this->config,$this->dn,$this->SubObjects[$_POST['SubObject']]);
$a_return=array();
foreach($this->SubObjects as $obj){
if($obj['status'] != "delete"){
+
if((isset($obj['description']))&&(!empty($obj['description']))){
+ if(strlen($obj['description']) > 40){
+ $obj['description'] = substr($obj['description'],0,40)."...";
+ }
$a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]";
}else{
$a_return[$obj['cn']]= $obj['cn'];