init currencyies
authorAlan <alan@roojs.com>
Wed, 23 Feb 2022 08:33:50 +0000 (16:33 +0800)
committerAlan <alan@roojs.com>
Wed, 23 Feb 2022 08:33:50 +0000 (16:33 +0800)
Pman.php
UpdateDatabase.php

index e07aecb..841dd8e 100644 (file)
--- a/Pman.php
+++ b/Pman.php
@@ -8,7 +8,7 @@ class Pman_Xtuple_Pman extends Pman {
         $this->jerr("access denied");
     }
     
-    function init($pman)
+    function init($pman = flase)
     {   
         // add the offices to the uiConfig.
         if (empty($pman->uiConfig)) {
index ef19df6..9318591 100644 (file)
@@ -103,7 +103,7 @@ class Pman_Xtuple_UpdateDatabase extends Pman_Core_UpdateDatabase
     }
     
     
-    function get($k = '',$opts)
+    function get($k = '',$opts=array())
     {
         $k = strtolower($k);
         
@@ -176,7 +176,8 @@ class Pman_Xtuple_UpdateDatabase extends Pman_Core_UpdateDatabase
                 HTML_FlexyFramework::get()->generateDataobjectsCache(true);
                 
                 $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$dbtype}.initdata");
-                $this->{'fixSequences'. $dbtype}();
+                // fixSequences does nto appar to work on postgres anymore
+                //$this->{'fixSequences'. $dbtype}();
                 
             }
               
@@ -219,7 +220,8 @@ class Pman_Xtuple_UpdateDatabase extends Pman_Core_UpdateDatabase
         
         
         $core_opts = HTML_FlexyFramework::get()->page->opts;
-        if (!empty($core_opts['init'])) {
+        if (!empty($core_opts['base'])) {
+            DB_DataObject::factory('curr_symbol')->importFromArray($this, array($core_opts['base']));
             DB_DataObject::factory('curr_symbol')->setBase($this, $core_opts['base']);
         }