Merge pull request #12790 from alifrumin/core362
[civicrm-core.git] / CRM / Admin / Page / Options.php
index 5aae68d18815443d14824b17b600a13963e5cb67..da8d8c41ee5962e020cfeedc8c99e3fc4093df76 100644 (file)
@@ -81,6 +81,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
   public function preProcess() {
     if (!self::$_gName && !empty($this->urlPath[3])) {
       self::$_gName = $this->urlPath[3];
+      self::$_isLocked = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', self::$_gName, 'is_locked', 'name');
     }
     // If an id arg is passed instead of a group name in the path
     elseif (!self::$_gName && !empty($_GET['gid'])) {