mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-13 17:24:54 +02:00
Adjustments regarding accounts.id in admin panel -> Accounts editor
getAccountIdentityColumn() function
This commit is contained in:
@@ -1684,6 +1684,18 @@ function isRequestMethod(string $method): bool {
|
||||
return strtolower($_SERVER['REQUEST_METHOD']) == strtolower($method);
|
||||
}
|
||||
|
||||
function getAccountIdentityColumn(): string
|
||||
{
|
||||
if (USE_ACCOUNT_NAME) {
|
||||
return 'name';
|
||||
}
|
||||
elseif (USE_ACCOUNT_NUMBER) {
|
||||
return 'number';
|
||||
}
|
||||
|
||||
return 'id';
|
||||
}
|
||||
|
||||
// validator functions
|
||||
require_once SYSTEM . 'compat/base.php';
|
||||
|
||||
|
Reference in New Issue
Block a user