Skip to content
Snippets Groups Projects
Commit e8addcb8 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fixed: [ bug #1756 ] PHP error while removing an import profile

parent e6d2bc0b
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,8 @@ if (empty($reshook) && ! empty($extrafields->attribute_label)) ...@@ -47,7 +47,8 @@ if (empty($reshook) && ! empty($extrafields->attribute_label))
{ {
print '<tr><td>'; print '<tr><td>';
print '<table width="100%" class="nobordernopadding"><tr><td'; print '<table width="100%" class="nobordernopadding"><tr><td';
if (! empty($extrafields->attribute_required [$key])) print ' class="fieldrequired"'; //var_dump($action);exit;
if ((! empty($action) && $action != 'view') && ! empty($extrafields->attribute_required[$key])) print ' class="fieldrequired"';
print '>' . $label . '</td>'; print '>' . $label . '</td>';
//TODO Improve element and rights detection //TODO Improve element and rights detection
......
...@@ -22,8 +22,7 @@ ...@@ -22,8 +22,7 @@
*/ */
/** /**
* \class Import * Class to manage imports
* \brief Class to manage imports
*/ */
class Import class Import
{ {
...@@ -313,10 +312,12 @@ class Import ...@@ -313,10 +312,12 @@ class Import
{ {
if (! $notrigger) if (! $notrigger)
{ {
/* Not used. This is not a business object. To convert it we must herit from CommonObject
// Call trigger // Call trigger
$result=$this->call_trigger('IMPORT_DELETE',$user); $result=$this->call_trigger('IMPORT_DELETE',$user);
if ($result < 0) $error++; if ($result < 0) $error++;
// End call triggers // End call triggers
*/
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment