forked from Public/pics
		
	GenericTable: drop $tableIsSortable property
This commit is contained in:
		
							parent
							
								
									e57289eeb6
								
							
						
					
					
						commit
						06c95853f5
					
				@ -15,7 +15,6 @@ class GenericTable
 | 
			
		||||
 | 
			
		||||
	private $title;
 | 
			
		||||
	private $title_class;
 | 
			
		||||
	private $tableIsSortable = false;
 | 
			
		||||
 | 
			
		||||
	public $form_above;
 | 
			
		||||
	public $form_below;
 | 
			
		||||
@ -37,9 +36,6 @@ class GenericTable
 | 
			
		||||
		if (!empty($options['sort_direction']) && !in_array($options['sort_direction'], ['up', 'down']))
 | 
			
		||||
			$options['sort_direction'] = 'up';
 | 
			
		||||
 | 
			
		||||
		// Make sure we know whether we can actually sort on something.
 | 
			
		||||
		$this->tableIsSortable = !empty($options['base_url']);
 | 
			
		||||
 | 
			
		||||
		// How much data do we have?
 | 
			
		||||
		$this->recordCount = $options['get_count']();
 | 
			
		||||
 | 
			
		||||
@ -100,7 +96,7 @@ class GenericTable
 | 
			
		||||
			if (empty($column['header']))
 | 
			
		||||
				continue;
 | 
			
		||||
 | 
			
		||||
			$isSortable = $this->tableIsSortable && !empty($column['is_sortable']);
 | 
			
		||||
			$isSortable = !empty($column['is_sortable']);
 | 
			
		||||
			$sortDirection = $key == $this->sort_order && $this->sort_direction === 'up' ? 'down' : 'up';
 | 
			
		||||
 | 
			
		||||
			$header = [
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user