diff --git a/htdocs/add_oclass_form.php b/htdocs/add_oclass_form.php index 9330ce1..ce1fa22 100644 --- a/htdocs/add_oclass_form.php +++ b/htdocs/add_oclass_form.php @@ -107,6 +107,9 @@ if (count($ldap['attrs']['need']) > 0) { $href = sprintf('cmd.php?cmd=template_engine&server_id=%s&dn=%s&modified_attrs[]=objectclass', $app['server']->getIndex(),rawurlencode($request['dn'])); + if (get_request('meth','REQUEST') == 'ajax') + $href .= '&meth=ajax'; + header(sprintf('Location: %s',$href)); die(); } diff --git a/htdocs/add_value_form.php b/htdocs/add_value_form.php index 2100f6a..f4c070e 100644 --- a/htdocs/add_value_form.php +++ b/htdocs/add_value_form.php @@ -32,7 +32,7 @@ if ($request['attribute']->isReadOnly()) */ # Render the form -if (get_request('meth','REQUEST') != 'ajax') { +if (! strcasecmp($request['attr'],'objectclass') || get_request('meth','REQUEST') != 'ajax') { # Render the form. $request['page']->drawTitle(sprintf('%s %s %s %s',_('Add new'),$request['attr'],_('value to'),get_rdn($request['dn']))); $request['page']->drawSubTitle(); @@ -113,7 +113,9 @@ if (get_request('meth','REQUEST') != 'ajax') { echo '