From 6ef8ec8ba7d3ae8fbfd242311f36aa4538d60bfd Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Thu, 16 Feb 2012 07:30:15 +0000 Subject: [PATCH] fixed problem with password dialog --- lam/lib/modules/asteriskAccount.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lam/lib/modules/asteriskAccount.inc b/lam/lib/modules/asteriskAccount.inc index 3276d61d..83fef441 100644 --- a/lam/lib/modules/asteriskAccount.inc +++ b/lam/lib/modules/asteriskAccount.inc @@ -645,10 +645,6 @@ class asteriskAccount extends baseModule implements passwordService { * @return htmlElement HTML meta data */ function display_html_attributes() { - if (isset($_POST['addObjectClass'])) { - $this->attributes['objectClass'][] = 'AsteriskSIPUser'; - } - $return = new htmlTable(); if (in_array('AsteriskSIPUser', $this->attributes['objectClass'])) { // caller ID @@ -978,6 +974,10 @@ class asteriskAccount extends baseModule implements passwordService { * Write variables into object and do some regex checks */ function process_attributes() { + if (isset($_POST['addObjectClass'])) { + $this->attributes['objectClass'][] = 'AsteriskSIPUser'; + return array(); + } if (!in_array('AsteriskSIPUser', $this->attributes['objectClass'])) { return array(); }