Search criteria not working correctly for checkbox field for size

Issue #10 resolved
Ellen Cramer created an issue

Example plant id 127 has >30 and <30 Only <30 shows up. Is doing size IN values (1,2) in sql

Comments (1)

  1. Ellen Cramer reporter

    Example of field criteria to get to work:

            if ($this->size) {
                foreach ($this->size as $value) {
                    $criteria2->compare('size',$value,true,'OR');
                }
                $criteria->mergeWith($criteria2); //defaults to AND
            }
    
  2. Log in to comment