Skip to content
Snippets Groups Projects
Commit b10d6dad authored by yogeshwar's avatar yogeshwar
Browse files

E-ALL SETTINGS - Sharing Rules

parent b9823a98
No related branches found
No related tags found
2 merge requests!1233E_ALL fixes across modules for PHP 8.x,!1211E-ALL SETTINGS - Sharing Rules
......@@ -90,7 +90,7 @@ class Vtiger_Viewer extends Smarty {
'array_map', 'array_key_exists', 'get_class', 'vtlib_array', 'getDuplicatesPreventionMessage', 'htmlentities', 'purifyHtmlEventAttributes',
'getCurrencySymbolandCRate', 'mb_substr', 'isPermitted', 'getEntityName', 'function_exists', 'php7_trim', 'php7_htmlentities',
'strtolower', 'strtoupper', 'str_replace', 'urlencode', 'getTranslatedCurrencyString', 'getTranslatedString', 'is_object', 'is_numeric',
'php7_sizeof', 'method_exists','implode','mt_rand');
'php7_sizeof', 'method_exists','implode','mt_rand','substr','in_array');
foreach ($modifiers as $modifier) {
if (function_exists($modifier)) {
$this->registerPlugin('modifier', $modifier, $modifier);
......
......@@ -121,7 +121,7 @@ class Settings_SharingAccess_Rule_Model extends Vtiger_Base_Model {
}
protected function getRuleComponents() {
if(!$this->rule_details && $this->getId()) {
if(!property_exists($this,'rule_details') ||!$this->rule_details && $this->getId()) {
$db = PearDatabase::getInstance();
$relationTypeComponents = explode('::', $this->get('relationtype'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment