diff --git a/class/foreignfield.php b/class/foreignfield.php index 5b72569539ead420f3444e84567f4174c6f60bc1..954e84e46de6eab8683f36cacf613a3157c4378d 100644 --- a/class/foreignfield.php +++ b/class/foreignfield.php @@ -1,6 +1,6 @@ <?php -class ForeignField { +class ForeignField extends Field { protected $name; protected $value; protected $primary; diff --git a/view/list.php b/view/list.php index 0ce0b4bcf0d3274a642a98e7f74f8691e821d9dd..864ebdb6306644a1de724d297cfdcc793b231b30 100644 --- a/view/list.php +++ b/view/list.php @@ -6,7 +6,7 @@ <table class="table"> <thead> <?php foreach($list->getLabels() as $field): ?> - <th><?php echo $field->getLabel(); ?></th> + <th><?php echo $field->label; ?></th> <?php endforeach; ?> <th></th> </thead>