Skip to content

Commit

Permalink
fix ressource list with extrafields
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-florian committed Oct 3, 2018
1 parent 75b1cac commit ef7ed97
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions htdocs/resource/list.php
@@ -1,7 +1,7 @@
<?php
/* Copyright (C) 2013-2014 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) 2018 Nicolas ZABOURI <info@inovea-conseil.com>
*
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
Expand Down Expand Up @@ -242,35 +242,35 @@

if ($ret)
{
foreach ($object->lines as $obj)
foreach ($object->lines as $ressource)
{
print '<tr class="oddeven">';

if (! empty($arrayfields['t.ref']['checked']))
{
print '<td>';
print $obj->getNomUrl(5);
print $ressource->getNomUrl(5);
print '</td>';
if (! $i) $totalarray['nbfield']++;
}

if (! empty($arrayfields['ty.label']['checked']))
{
print '<td>';
print $obj->type_label;
print $ressource->type_label;
print '</td>';
if (! $i) $totalarray['nbfield']++;
}
// Extra fields
$obj = (Object) $resource->array_options;
$obj = (Object) $ressource->array_options;
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';

print '<td align="center">';
print '<a href="./card.php?action=edit&id='.$obj->id.'">';
print '<a href="./card.php?action=edit&id='.$ressource->id.'">';
print img_edit();
print '</a>';
print '&nbsp;';
print '<a href="./card.php?action=delete&id='.$obj->id.'">';
print '<a href="./card.php?action=delete&id='.$ressource->id.'">';
print img_delete();
print '</a>';
print '</td>';
Expand Down

0 comments on commit ef7ed97

Please sign in to comment.