<commit_before><?php

namespace Products;

class Controller_Admin extends \Controller_Secure {
	
	public function before() {
		$this->permission_required = Context_Products::MGMT_PERM;
		parent::before();
	}
	
	public function action_index() {
		$this->push_js('products-modals');
		
		$this->template->title = __('product.title_admin');
		$this->template->page_title = __('product.title_admin');
		$this->template->subtitle = __('privileges.perm.manage');
		$data['products'] = Model_Product::query()->where('settled', 0)->get();			
		$this->template->content = \View::forge('admin/index', $data);
	}
	
	public function action_create() {
		$this->template->title = __('product.title_admin');
		$this->template->subtitle = __('actions.create');		
		$this->template->content = \View::forge('admin/create');
	}
}
<commit_msg>Fix select all on admin products page<commit_after><?php

namespace Products;

class Controller_Admin extends \Controller_Secure {
	
	public function before() {
		$this->permission_required = Context_Products::MGMT_PERM;
		parent::before();
	}
	
	public function action_index() {
		$this->push_js('products-modals');
		
		$this->template->title = __('product.title_admin');
		$this->template->page_title = __('product.title_admin');
		$this->template->subtitle = __('privileges.perm.manage');
		$data['products'] = Model_Product::query()->where('settled', 0)->get();			
		$this->template->content = \View::forge('admin/index', $data);
	}
	
	public function action_create() {
		$this->push_js('products-modals');
		
		$this->template->title = __('product.title_admin');
		$this->template->subtitle = __('actions.create');		
		$this->template->content = \View::forge('admin/create');
	}
}

{'fraction_non_alphanumeric': 0.18888888888888888, 'fraction_numerical': 0.0011695906432748538, 'mean_word_length': 5.267399267399267, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3431008', 'n_tokens_mistral': 595, 'n_tokens_neox': 534, 'n_words': 83}