[dev] Bug in turba/advanced.php (incl patch)

Jan Kuipers jrkuipers@lauwerscollege.nl
Mon, 24 Jun 2002 00:25:41 +0200


Regarding HEAD:
The two new fields in turba_objects causing problems in turba/advanced.php
I did this:

Index: advanced.php
===================================================================
RCS file: /repository/turba/advanced.php,v
retrieving revision 1.33
diff -u -r1.33 advanced.php
--- advanced.php	27 May 2002 03:01:59 -0000	1.33
+++ advanced.php	23 Jun 2002 22:17:48 -0000
@@ -105,7 +105,11 @@
 
 foreach ($map as $name => $v) {
     if ($name != '__owner') {
-        include TURBA_TEMPLATES . '/advanced/criteria.inc';
+        if ($name != '__type') {
+            if ($name != '__members') {
+                include TURBA_TEMPLATES . '/advanced/criteria.inc';
+            }
+        }
     }
 }

But there is probably a better way in solving this ;)

-- 
Jan Kuipers
Systeembeheer Lauwers College