Skip to content
Snippets Groups Projects
Commit fa90dc8f authored by Matthieu Guffroy's avatar Matthieu Guffroy
Browse files

fix errors

parent 2ca455da
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,7 @@ class ListView
public function getLabels() {
if(count($this->objArray) > 0 ){
return $this->objArray[0];
return $this->objArray[0]->getFields();
} else {
throw new Exception("Liste vide");
}
......
......@@ -6,7 +6,7 @@
<table class="table">
<thead>
<?php foreach($list->getLabels() as $field): ?>
<th><?php echo $field->getLabels(); ?></th>
<th><?php echo $field->getLabel(); ?></th>
<?php endforeach; ?>
<th></th>
</thead>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment