Projekt

Obecné

Profil

Chyba #895 » File_form.php.patch

Opravný patch - Ondřej Fibich, 2014-03-19 23:04

Zobrazit rozdíly:

application/libraries/Filter_form.php Locally Modified (Based On LOCAL)
$query = Input::instance()->get('query');
// load query from database
if ($query && is_numeric($query) && isset($this->queries[$query]))
// load query from database (because of #895 can be from different URL)
if ($query && is_numeric($query))
{
$data = json_decode($this->queries[$query]->values, TRUE);
$loaded_query = new Filter_query_Model($query);
if ($loaded_query && $loaded_query->id) {
$on = @$data["on"];
$types = @$data["types"];
$operations = @$data["opers"];
$values = @$data["values"];
$tables = @$data["tables"];
$data = json_decode($loaded_query->values, TRUE);
$on = @$data["on"];
$types = @$data["types"];
$operations = @$data["opers"];
$values = @$data["values"];
$tables = @$data["tables"];
$this->loaded_from_saved_query = TRUE;
}
$this->loaded_from_saved_query = TRUE;
$this->first_load = FALSE;
}
// load query from URL
else
{
{
$on = Input::instance()->get('on');
$types = Input::instance()->get('types');
$operations = Input::instance()->get('opers');
......
{
$data = json_decode($this->queries[$this->default_query_id]->values, TRUE);
$on = $data["on"];
$types = $data["types"];
$operations = $data["opers"];
$values = $data["values"];
$tables = $data["tables"];
$on = @$data["on"];
$types = @$data["types"];
$operations = @$data["opers"];
$values = @$data["values"];
$tables = @$data["tables"];
$this->can_add = FALSE;
$this->loaded_from_saved_query = TRUE;
(1-1/2)