mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-01-12 06:41:14 +01:00
Improved compatibility to Xentral 20 database
This commit is contained in:
parent
2bb3130b00
commit
383524f348
File diff suppressed because it is too large
Load Diff
@ -890,18 +890,23 @@ $this->app->Tpl->Add('TODOFORUSER',"<tr><td width=\"90%\">".$tmp[$i]['aufgabe'].
|
|||||||
|
|
||||||
$this->app->erp->RunHook('welcome_start', 1 , $this);
|
$this->app->erp->RunHook('welcome_start', 1 , $this);
|
||||||
|
|
||||||
if(empty($this->app->User->GetField('role')) || $this->app->acl->IsAdminadmin()) {
|
// Xentral 20 database compatibility
|
||||||
$this->app->ModuleScriptCache->IncludeWidgetNew('ClickByClickAssistant');
|
if ($this->app->DB->Select("SHOW COLUMNS FROM `user` LIKE 'role'")) {
|
||||||
$this->app->ModuleScriptCache->IncludeJavascriptFiles(
|
|
||||||
|
if(empty($this->app->User->GetField('role')) || $this->app->acl->IsAdminadmin()) {
|
||||||
|
$this->app->ModuleScriptCache->IncludeWidgetNew('ClickByClickAssistant');
|
||||||
|
$this->app->ModuleScriptCache->IncludeJavascriptFiles(
|
||||||
'welcome',
|
'welcome',
|
||||||
[
|
[
|
||||||
'body' => [
|
'body' => [
|
||||||
'./classes/Modules/Welcome/www/js/welcome_firststart.js',
|
'./classes/Modules/Welcome/www/js/welcome_firststart.js',
|
||||||
],
|
],
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
$this->app->Tpl->Parse('AUFGABENPOPUP', 'welcome_firststart.tpl');
|
$this->app->Tpl->Parse('AUFGABENPOPUP', 'welcome_firststart.tpl');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($this->app->User->GetType() === 'admin') {
|
if($this->app->User->GetType() === 'admin') {
|
||||||
$this->app->Tpl->Set('COLROWTASKS', '6');
|
$this->app->Tpl->Set('COLROWTASKS', '6');
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user