diff --git a/frontend/classes/class.container.php b/frontend/classes/class.container.php index 2362169..61325a8 100644 --- a/frontend/classes/class.container.php +++ b/frontend/classes/class.container.php @@ -249,8 +249,6 @@ class Container extends CPHPDatabaseRecordClass $this->uRootPassword = $sRootPassword; $this->InsertIntoDatabase(); - var_dump($this->sTemplate->sTemplateName); - $command = shrink_command("vzctl create {$this->sInternalId} --ostemplate {$this->sTemplate->sTemplateName} "); diff --git a/frontend/cphp/class.databaserecord.php b/frontend/cphp/class.databaserecord.php index 4c1062d..d0b7893 100644 --- a/frontend/cphp/class.databaserecord.php +++ b/frontend/cphp/class.databaserecord.php @@ -34,6 +34,11 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass $this->EventConstructed(); } + public function RefreshData() + { + $this->ConstructDataset($this->sId); + } + public function ConstructDataset($uDataSource, $uCommunityId = 0) { $bind_datasets = true; @@ -348,6 +353,7 @@ abstract class CPHPDatabaseRecordClass extends CPHPBaseClass } $this->PurgeCache(); + $this->RefreshData(); return $result; }