Don't include empty fields in filter query string, just to shorten it a bit
parent
27dfdd1b4e
commit
24ad12fa22
|
@ -90,8 +90,11 @@ class Filter extends ZM_Object {
|
|||
$this->_querystring .= $term->querystring($objectname, $separator);
|
||||
} # end foreach term
|
||||
$this->_querystring .= $separator.urlencode($objectname.'[Query][sort_asc]').'='.$this->sort_asc();
|
||||
if ($this->sort_field())
|
||||
$this->_querystring .= $separator.urlencode($objectname.'[Query][sort_field]').'='.$this->sort_field();
|
||||
if ($this->skip_locked())
|
||||
$this->_querystring .= $separator.urlencode($objectname.'[Query][skip_locked]').'='.$this->skip_locked();
|
||||
if ($this->limit())
|
||||
$this->_querystring .= $separator.urlencode($objectname.'[Query][limit]').'='.$this->limit();
|
||||
if ( $this->Id() ) {
|
||||
$this->_querystring .= $separator.$objectname.urlencode('[Id]').'='.$this->Id();
|
||||
|
|
Loading…
Reference in New Issue