summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e566169)
raw | patch | inline | side by side (parent: e566169)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Jul 2009 15:25:25 +0000 (15:25 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Jul 2009 15:25:25 +0000 (15:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13884 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/roleManagement/admin/roleManagement/class_roleGeneric.inc | patch | blob | history | |
gosa-plugins/roleManagement/admin/roleManagement/roleGeneric.tpl | patch | blob | history |
diff --git a/gosa-plugins/roleManagement/admin/roleManagement/class_roleGeneric.inc b/gosa-plugins/roleManagement/admin/roleManagement/class_roleGeneric.inc
index ee30124ec0ae3e9379ae3c1a037b4c41cf38bbb8..58b71a4a5f27f7f191a19dc281def81b050c85fa 100644 (file)
$message[]= msgPool::permMove();
}
+ /* must: cn */
+ if ($this->cn == ""){
+ $message[]= msgPool::required(_("Name"));
+ }
+
// Check if this name is uniq for roles.
$ldap= $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
if ($ldap->count() != 0 && ( $this->dn == 'new' || $this->cn != $this->orig_cn)){
$message[]= msgPool::duplicated(_("Name"));
}
+
return($message);
}
diff --git a/gosa-plugins/roleManagement/admin/roleManagement/roleGeneric.tpl b/gosa-plugins/roleManagement/admin/roleManagement/roleGeneric.tpl
index 21c683edb5e5ef9fd755c91b9191cdbae2fbb6dc..46f5884dfa831fc51475a98b5f75840fc18e1c48 100644 (file)
<table style='width:100%;'>
<tr>
- <td>{t}Name{/t}</td>
+ <td>{t}Name{/t}{$must}</td>
<td>
{render acl=$cnACL}
<input type='text' value='{$cn}' name='cn'>