Commit 5e29b4c7 authored by Falko Timme's avatar Falko Timme

- Bugfix: alias domain, subdomain, and vhost subdomain results in the global...

- Bugfix: alias domain, subdomain, and vhost subdomain results in the global search link to the correct form now.
parent c38869fb
......@@ -55,7 +55,16 @@ $type = $_GET["type"];
$result[] = _search('client', 'reseller', "AND limit_client != 0");
// web sites
$result[] = _search('sites', 'web_domain');
$result[] = _search('sites', 'web_domain', "AND type = 'vhost'");
// subdomains
$result[] = _search('sites', 'web_subdomain', "AND type = 'subdomain'");
// web site aliases
$result[] = _search('sites', 'web_aliasdomain', "AND type = 'alias'");
// vhostsubdomains
$result[] = _search('sites', 'web_vhost_subdomain', "AND type = 'vhostsubdomain'");
// FTP users
$result[] = _search('sites', 'ftp_user');
......
......@@ -29,6 +29,11 @@
Hint:
The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint).
Search:
- searchable = 1 or searchable = 2 include the field in the search
- searchable = 1: this field will be the title of the search result
- searchable = 2: this field will be included in the description of the search result
*/
......@@ -87,7 +92,8 @@ $form["tabs"]['domain'] = array (
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
'maxlength' => '255',
'searchable' => 1
),
'type' => array (
'datatype' => 'VARCHAR',
......
......@@ -29,6 +29,11 @@
Hint:
The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint).
Search:
- searchable = 1 or searchable = 2 include the field in the search
- searchable = 1: this field will be the title of the search result
- searchable = 2: this field will be included in the description of the search result
*/
......@@ -87,7 +92,8 @@ $form["tabs"]['domain'] = array (
'default' => '',
'value' => '',
'width' => '30',
'maxlength' => '255'
'maxlength' => '255',
'searchable' => 1
),
'type' => array (
'datatype' => 'VARCHAR',
......@@ -104,7 +110,8 @@ $form["tabs"]['domain'] = array (
'keyfield'=> 'domain_id',
'valuefield'=> 'domain'
),
'value' => ''
'value' => '',
'searchable' => 2
),
'redirect_type' => array (
'datatype' => 'VARCHAR',
......
<?php
$wb['domain_txt'] = 'Aliasdomain';
?>
<?php
$wb['domain_txt'] = 'Aliasdomain';
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment