From: cajus Date: Mon, 1 Feb 2010 10:15:00 +0000 (+0000) Subject: Added last base check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=79366d07c1b2b6768ef55dd141403bb9ca80a3eb;p=gosa.git Added last base check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15533 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc index 76acbdbf1..3a3f2768e 100644 --- a/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc +++ b/gosa-plugins/goto/admin/devices/class_deviceGeneric.inc @@ -112,6 +112,11 @@ class deviceGeneric extends plugin if(empty($this->vendor) || !$this->is_2byteHex($this->vendor)){ $message[]= msgPool::invalid(_("Vendor-ID"),"","","0x1234"); } + + // Check if a wrong base was supplied + if(!$this->baseSelector->checkLastBaseUpdate()){ + $message[]= msgPool::check_base(); + } /* Check if entry already exists */ if($this->cn != $this->orig_cn || $this->dn == "new"){