DataObjects/core.sql
[Pman.Core] / Notify.php
index 6061962..a462098 100644 (file)
@@ -52,10 +52,10 @@ class Pman_Core_Notify extends Pman
         ),
         'generate' => array(
             'desc' => 'Generate notifications for a table, eg. cash_invoice',
-            'default' => 0,
+            'default' => '',
             'short' => 'g',
             'min' => 0,
-            'max' => 0,
+            'max' => 1,
         ),
     );
     
@@ -65,7 +65,7 @@ class Pman_Core_Notify extends Pman
     var $target = 'Core/NotifySend';
     var $evtype = ''; // any notification...
                     // this script should only handle EMAIL notifications..
-    
+    var $force = false;
     function getAuth()
     {
         $ff = HTML_FlexyFramework::get();
@@ -108,6 +108,7 @@ class Pman_Core_Notify extends Pman
             if (is_a($w, 'DB_DataObject')) {
                 $w->generateNotifications();
             }
+            exit;
             
             
         }