Changeset 213

Show
Ignore:
Timestamp:
07/05/06 12:48:16 (2 years ago)
Author:
laurentj
Message:

fix bug dao sur in/notin: accepte maintenant les _ dans les noms

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/jelix/dao/jDaoParser.class.php

    r200 r213  
    538538            $this->_def->_compiler->doDefError('method.condition.valueexpr.notallowed', array($this->name, $op, $field_id)); 
    539539         } 
    540          if(($op == 'in' || $op =='notin')&& !preg_match('/^\$[a-zA-Z0-9]+$/', $attr['expr'])){ 
     540         if(($op == 'in' || $op =='notin')&& !preg_match('/^\$[a-zA-Z0-9_]+$/', $attr['expr'])){ 
    541541            $this->_def->_compiler->doDefError('method.condition.innotin.bad.expr', array($this->name, $op, $field_id)); 
    542542         } 
Download in other formats: Unified Diff Zip Archive