From da70cdd03c25fa1d6bc8c3007887cbe514296a54 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 31 Mar 2010 08:52:19 +0000 Subject: [PATCH] Set mode to read_only if we edit frozen apps git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17426 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../class_applicationManagement.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc index e8ee575ff..301d1f3eb 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationManagement.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationManagement.inc @@ -121,6 +121,25 @@ class applicationManagement extends management } + /*! \brief This method opens an existing object or a list of existing objects to be edited. + * + * + * @param String 'action' The name of the action which was the used as trigger. + * @param Array 'target' A list of object dns, which should be affected by this method. + * @param Array 'all' A combination of both 'action' and 'target'. + */ + function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") + { + management::editEntry($action,$target,$all,$altTabClass,$altTabType,$altAclCategory); + if($this->tabObject){ + if(isset($this->tabObject->by_object['application']->attrs['FAIstate'][0])){ + $state = $this->tabObject->by_object['application']->attrs['FAIstate'][0]; + $this->tabObject->setReadOnly(preg_match("/freeze/i", $state)); + } + } + } + + /*! \brief Overridden render method of class mangement. * this allows us to add a release selection box. */ -- 2.30.2