mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
Merge pull request #1266 from lonalore/master
Fixed: Issue #1265: admin UI - readonly with type user
This commit is contained in:
@@ -3693,7 +3693,19 @@ class e_form
|
|||||||
elseif($value && is_numeric($value))
|
elseif($value && is_numeric($value))
|
||||||
{
|
{
|
||||||
$id = $value;
|
$id = $value;
|
||||||
$ttl = vartrue($parms['__nameval']);
|
|
||||||
|
if (vartrue($parms['__nameval']))
|
||||||
|
{
|
||||||
|
$ttl = $parms['__nameval'];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$user = e107::user($value);
|
||||||
|
if (vartrue($user['user_name']))
|
||||||
|
{
|
||||||
|
$ttl = $user['user_name'];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
// If you don't insert this line into your JS, you may see the error: e107 is not defined.
|
||||||
|
var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||||
|
|
||||||
(function ($) {
|
(function ($) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user