mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-20 16:31:51 +01:00
Replace {extra_ with {user_extra_
This commit is contained in:
committed by
GitHub
parent
f563746310
commit
a49174313f
@@ -791,13 +791,13 @@ function get_next_value($db,$mask,$table,$field,$where='',$objsoc='',$date='',$m
|
|||||||
$tmpmask=preg_replace('/\{'.$regKey[1].'\-'.$regKey[2].'\}/i', $maskpersonew, $tmpmask);
|
$tmpmask=preg_replace('/\{'.$regKey[1].'\-'.$regKey[2].'\}/i', $maskpersonew, $tmpmask);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
if(strstr($mask,'extra_')){
|
if (strstr($mask,'user_extra_'))
|
||||||
|
{
|
||||||
$start = "{extra_";
|
$start = "{user_extra_";
|
||||||
$end = "\}";
|
$end = "\}";
|
||||||
$extra= get_string_between($mask, "extra_", "}");
|
$extra= get_string_between($mask, "user_extra_", "}");
|
||||||
if(!empty($user->array_options['options_'.$extra])){
|
if(!empty($user->array_options['options_'.$extra])){
|
||||||
$mask = preg_replace('#('.($start).')(.*?)('.($end).')#si', $user->array_options['options_'.$extra], $mask);
|
$mask = preg_replace('#('.$start.')(.*?)('.$end.')#si', $user->array_options['options_'.$extra], $mask);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$maskwithonlyymcode=$mask;
|
$maskwithonlyymcode=$mask;
|
||||||
|
|||||||
Reference in New Issue
Block a user