projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c352113
)
dev/core#55: Fetch "is_locked" value when using group name in URL
author
Michael Devery
<michael@compucorp.co.uk>
Mon, 9 Apr 2018 12:08:41 +0000
(13:08 +0100)
committer
Michael Devery
<michael@compucorp.co.uk>
Mon, 9 Apr 2018 12:38:49 +0000
(13:38 +0100)
CRM/Admin/Page/Options.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Admin/Page/Options.php
b/CRM/Admin/Page/Options.php
index dbfe1b9005a97de700c1b5793b963ff2531a95d1..54567e5f5ef985dc43626b6a76135dd2ec62f978 100644
(file)
--- a/
CRM/Admin/Page/Options.php
+++ b/
CRM/Admin/Page/Options.php
@@
-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'])) {