Skip to content

Commit

Permalink
fix empty layout map case
Browse files Browse the repository at this point in the history
  • Loading branch information
renderpci committed Oct 5, 2017
1 parent b3fd2c9 commit ade64d0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/dedalo/section_records/rows_header/rows_header.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,18 @@
$tipo = $this->section_records_obj->get_tipo();
$permissions = common::get_permissions($tipo,$tipo);
$modo = $this->get_modo();
$section_tipo = $this->section_records_obj->rows_obj->options->section_tipo;
$layout_map = $this->section_records_obj->rows_obj->options->layout_map;



if (empty($layout_map)) {
$layout_map = $this->section_records_obj->rows_obj->options->layout_map = array($section_tipo=>array());
debug_log(__METHOD__." Error. layout_map is empty. Using a temporal layout_map to avoid break the section ".to_string(), logger::ERROR);
}
#dump($layout_map, ' layout_map ++ '.to_string());


$section_tipo = $this->section_records_obj->rows_obj->options->section_tipo;
$section_list_tipo = key($this->section_records_obj->rows_obj->options->layout_map);
$ar_columns_tipo = reset($this->section_records_obj->rows_obj->options->layout_map);

Expand Down

0 comments on commit ade64d0

Please sign in to comment.