summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 842b0b8)
raw | patch | inline | side by side (parent: 842b0b8)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 Oct 2007 12:11:45 +0000 (12:11 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 18 Oct 2007 12:11:45 +0000 (12:11 +0000) |
If save failed, the cn field wasn't editalbe anymore.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7592 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7592 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/macro/class_gofonMacro.inc | patch | blob | history |
index 3f64f6ab4cd0644f1b3a683d46431905a302cf1a..a7a8a6c13ebef8b925dd1584e7d5a903345cc065 100755 (executable)
var $goFonHomeServers = array(); // Contains all available asterisk database server
+ var $is_new = FALSE;
+
//! The Konstructor
/*! Konstructor, load class with attributes of the given dn*/
function macro ($config, $dn= NULL, $parent= NULL)
/* Edit or new one ?*/
if ($this->dn == "new"){
+ $this->is_new = TRUE;
if(isset($_SESSION['CurrentMainBase'])){
$this->base = $_SESSION['CurrentMainBase'];
}else{
plugin::save_object();
/* The cn can't be changed if this entry is not new */
- if($this->dn!= "new"){
+ if(!$this->is_new){
$this->cn = $this->orig_cn;
}