SimpleExcel.php
[Pman.Core] / Bjs.php
diff --git a/Bjs.php b/Bjs.php
index d313779..d936bcf 100644 (file)
--- a/Bjs.php
+++ b/Bjs.php
@@ -24,7 +24,10 @@ class Pman_Core_Bjs {
         foreach($ar as $o) {
             
             switch ($o->xtype) {
-                case "ComboBox":                
+                case "ComboBox":
+                    if (!isset($o->{'String hiddenName'})) {
+                        continue;
+                    }
                     $this->fields[] = $o->{'String hiddenName'};
                     // fall throught..
                     $k = isset($o->{'String name'}) ? 'String name' : 'string name';
@@ -70,7 +73,17 @@ class Pman_Core_Bjs {
     function iterateColumns($ar)
     {
         foreach($ar as $o) {
-            
+            switch ($o->xtype) {
+                case "ColumnModel":
+                    $this->cols[] = $o;
+                    break;
+                default:
+                    if (isset($o->items)) {
+                        $this->iterateColumns($o->items);
+                    }
+            }
+        }
+    }
      
     
 }