Marius Burkard
2016-01-04 cb287d1f1be13beaba7fe84c906dd0683dfb9fb5
interface/lib/classes/tform_base.inc.php
@@ -126,8 +126,8 @@
   function loadFormDef($file, $module = '') {
      global $app, $conf;
      $app->plugin->raiseEvent('on_before_formdef', $module);
      include $file;
      $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$form['name'] . ':on_before_formdef', $this);
      $this->formDef = $form;
      $this->module = $module;
@@ -152,9 +152,9 @@
      }
      if(isset($wb_global)) unset($wb_global);
      
      $app->plugin->raiseEvent('on_after_formdef', $module);
      $this->wordbook = $wb;
      $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'] . ':on_after_formdef', $this);
      $this->dateformat = $app->lng('conf_format_dateshort');
      $this->datetimeformat = $app->lng('conf_format_datetime');
@@ -878,6 +878,9 @@
            case 'TRIM':
               $returnval = trim($returnval);
               break;
            case 'NOWHITESPACE':
               $returnval = preg_replace('/\s+/', '', $returnval);
               break;
            default:
               $this->errorMessage .= "Unknown Filter: ".$filter['type'];
               break;