Changeset 900 for trunk/Packages/Common/Modules
- Timestamp:
- Feb 17, 2021, 5:15:29 PM (4 years ago)
- Location:
- trunk/Packages/Common/Modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Modules/ModuleManager.php
r899 r900 260 260 $ModelId = $DbRow['Id']; 261 261 $DbResult = $this->Database->delete('ModelField', '(Model='.$ModelId.')'); 262 }263 $this->Database->delete('Model', '(Id='.$ModelId.')');262 $this->Database->delete('Model', '(Id='.$ModelId.')'); 263 } else echo('Can\'t remove model '.$ModelDesc->Name.'<br/>'); 264 264 $this->RemoveModelDatabase($ModelDesc); 265 265 } -
trunk/Packages/Common/Modules/Setup.php
r899 r900 59 59 $Output = $this->UpdateManager->Upgrade(); 60 60 return $Output; 61 }62 63 function InsertSampleData(): void64 {65 61 } 66 62 } … … 81 77 $this->FullTitle = T('Application setup'); 82 78 $this->ShortTitle = T('Application setup'); 83 //$this->ParentClass = 'Page Portal';79 //$this->ParentClass = 'PageSetupRedirect'; 84 80 $this->ConfigDir = dirname(dirname(dirname(__FILE__))).'/Config'; 85 81 $this->YesNo = array(false => T('No'), true => T('Yes')); … … 212 208 { 213 209 $Output .= '<h3>Vložení vzorových dat</h3>'; 214 ModuleSetup::Cast($this->System->GetModule('Setup'))->InsertSampleData();210 $this->System->ModuleManager->Perform(array(ModuleAction::InsertSampleData), array(ModuleCondition::Installed)); 215 211 $Output .= $this->ControlPanel(); 216 212 }
Note:
See TracChangeset
for help on using the changeset viewer.