New: Add path file of trigger into admin trigger list page
This commit is contained in:
parent
4d9712ea4c
commit
8fb0986303
@ -7,6 +7,13 @@ For users:
|
|||||||
- New: Add list of orders products in tab "consumption" on thirdparties.
|
- New: Add list of orders products in tab "consumption" on thirdparties.
|
||||||
- New: Add graph stats for suppliers orders in tab "stats" on products.
|
- New: Add graph stats for suppliers orders in tab "stats" on products.
|
||||||
|
|
||||||
|
For translators:
|
||||||
|
- Update language files.
|
||||||
|
|
||||||
|
For developers:
|
||||||
|
- New: Add path file of trigger into admin trigger list page.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
***** ChangeLog for 3.5 compared to 3.4.* *****
|
***** ChangeLog for 3.5 compared to 3.4.* *****
|
||||||
For users:
|
For users:
|
||||||
|
|||||||
@ -68,7 +68,12 @@ foreach ($triggers as $trigger)
|
|||||||
print '<td valign="top" width="14" align="center">'.$trigger['picto'].'</td>';
|
print '<td valign="top" width="14" align="center">'.$trigger['picto'].'</td>';
|
||||||
print '<td valign="top">'.$trigger['file'].'</td>';
|
print '<td valign="top">'.$trigger['file'].'</td>';
|
||||||
print '<td valign="top" align="center">'.$trigger['status'].'</td>';
|
print '<td valign="top" align="center">'.$trigger['status'].'</td>';
|
||||||
print '<td valign="top">'.$form->textwithpicto('', $trigger['info']).'</td>';
|
print '<td valign="top">';
|
||||||
|
$text=$trigger['info'];
|
||||||
|
$text.="<br>\n<strong>".$langs->trans("File")."</strong>:<br>\n".$trigger['relpath'];
|
||||||
|
//$text.="\n".$langs->trans("ExternalModule",$trigger['isocreorexternal']);
|
||||||
|
print $form->textwithpicto('', $text);
|
||||||
|
print '</td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,4 +82,4 @@ print '</table>';
|
|||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
?>
|
?>
|
||||||
@ -200,6 +200,9 @@ class Interfaces
|
|||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
$files = array();
|
$files = array();
|
||||||
|
$fullpath = array();
|
||||||
|
$relpath = array();
|
||||||
|
$iscoreorexternal = array();
|
||||||
$modules = array();
|
$modules = array();
|
||||||
$orders = array();
|
$orders = array();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
@ -238,6 +241,9 @@ class Interfaces
|
|||||||
}
|
}
|
||||||
|
|
||||||
$files[$i] = $file;
|
$files[$i] = $file;
|
||||||
|
$fullpath[$i] = $dir.'/'.$file;
|
||||||
|
$relpath[$i] = preg_replace('/^\//','',$reldir).'/'.$file;
|
||||||
|
$iscoreorexternal[$i] = ($reldir == '/core/triggers/'?'internal':'external');
|
||||||
$modules[$i] = $modName;
|
$modules[$i] = $modName;
|
||||||
$orders[$i] = $part1.'_'.$part2.'_'.$part3; // Set sort criteria value
|
$orders[$i] = $part1.'_'.$part2.'_'.$part3; // Set sort criteria value
|
||||||
|
|
||||||
@ -280,6 +286,9 @@ class Interfaces
|
|||||||
// We set info of modules
|
// We set info of modules
|
||||||
$triggers[$j]['picto'] = $objMod->picto?img_object('',$objMod->picto):img_object('','generic');
|
$triggers[$j]['picto'] = $objMod->picto?img_object('',$objMod->picto):img_object('','generic');
|
||||||
$triggers[$j]['file'] = $files[$key];
|
$triggers[$j]['file'] = $files[$key];
|
||||||
|
$triggers[$j]['fullpath'] = $fullpath[$key];
|
||||||
|
$triggers[$j]['relpath'] = $relpath[$key];
|
||||||
|
$triggers[$j]['iscoreorexternal'] = $iscoreorexternal[$key];
|
||||||
$triggers[$j]['version'] = $objMod->getVersion();
|
$triggers[$j]['version'] = $objMod->getVersion();
|
||||||
$triggers[$j]['status'] = img_picto($langs->trans("Active"),'tick');
|
$triggers[$j]['status'] = img_picto($langs->trans("Active"),'tick');
|
||||||
if ($disabledbyname > 0 || $disabledbymodule > 1) $triggers[$j]['status'] = " ";
|
if ($disabledbyname > 0 || $disabledbymodule > 1) $triggers[$j]['status'] = " ";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user