check for existing fields when setting/updating tablelisting-columns
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -29,11 +29,14 @@ use Froxlor\UI\Callbacks\Style;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
// used outside scope variables
|
||||
$customerCollectionCount = !is_null($customerCollection ?? null) ? $customerCollection->count() : 0;
|
||||
|
||||
return [
|
||||
'domain_list' => [
|
||||
'title' => lng('admin.domains'),
|
||||
'icon' => 'fa-solid fa-globe',
|
||||
'empty_msg' => $customerCollection->count() == 0 ? lng('admin.domain_nocustomeraddingavailable') : '',
|
||||
'empty_msg' => $customerCollectionCount == 0 ? lng('admin.domain_nocustomeraddingavailable') : '',
|
||||
'self_overview' => ['section' => 'domains', 'page' => 'domains'],
|
||||
'default_sorting' => ['d.domain_ace' => 'asc'],
|
||||
'columns' => [
|
||||
|
||||
@@ -27,6 +27,9 @@ use Froxlor\UI\Callbacks\Ftp;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
// used outside scope variables
|
||||
$cperlenabled = $cperlenabled ?? false;
|
||||
|
||||
return [
|
||||
'htaccess_list' => [
|
||||
'title' => lng('menue.extras.pathoptions'),
|
||||
|
||||
@@ -27,6 +27,9 @@ use Froxlor\UI\Callbacks\Mysql;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
// used outside scope variables
|
||||
$multiple_mysqlservers = $multiple_mysqlservers ?? false;
|
||||
|
||||
return [
|
||||
'mysql_list' => [
|
||||
'title' => lng('menue.mysql.databases'),
|
||||
|
||||
@@ -27,6 +27,10 @@ use Froxlor\UI\Callbacks\Dns;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
// used outside scope variables
|
||||
$domain = $domain ?? '';
|
||||
$domain_id = $domain_id ?? '';
|
||||
|
||||
return [
|
||||
'dns_list' => [
|
||||
'title' => 'DNS Entries',
|
||||
|
||||
Reference in New Issue
Block a user