Changeset 770:6e843790df75 for inc
- Timestamp:
- 11/18/11 11:04:55 (14 years ago)
- Branch:
- formfilters
- Location:
- inc/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/admin/class.dc.filter.php
r764 r770 247 247 } else { 248 248 // Use case (2) 249 if (count($get)==0) { 249 $load_from_settings = true; 250 foreach($get as $k=>$v) { 251 if (strpos($k,$this->form_prefix)===0) { 252 $load_from_settings=false; 253 break; 254 } 255 } 256 if ($load_from_settings) { 250 257 $get = new ArrayObject($this->loadFilters()); 251 258 if ($this->eextra != null) { -
inc/admin/class.dc.list.php
r764 r770 592 592 public function initializeFromData ($data) 593 593 { 594 $load_from_settings = true; 595 foreach ($data as $k=>$v) { 596 if (strpos($this->form_prefix,$k)===0) { 597 $load_from_settings = false; 598 } 599 } 600 if ($load_from_settings) { 601 $this->load(); 602 } 594 603 # Sortby 595 604 $this->sortby = array_key_exists('sortby',$data) ? $data['sortby'] : $this->sortby; 596 605 $this->order = array_key_exists('order',$data) ? $data['order'] : $this->order; 597 606 $this->nb_per_page = array_key_exists('nb_per_page',$data) ? $data['nb_per_page'] : $this->nb_per_page; 598 599 607 # Page 600 608 $this->page = array_key_exists('page',$data) ? $data['page'] : 1; 609 if ($load_from_settings) 610 return; 601 611 foreach ($this->columns as $k => $v) { 602 612 $key = sprintf($this->form_prefix,$k);
Note: See TracChangeset
for help on using the changeset viewer.