use correct function to get list of PDF structures
This commit is contained in:
parent
e36398666d
commit
f694cb93f4
|
@ -958,7 +958,7 @@ class accountContainer {
|
|||
$return[] = array(
|
||||
0 => array('kind' => 'text', 'text' => ' ')
|
||||
);
|
||||
$pdfStructures = getAvailablePDFStructures($type);
|
||||
$pdfStructures = getPDFStructureDefinitions($type);
|
||||
$return[] = array(
|
||||
0 => array('kind' => 'fieldset', 'legend' => '<b>PDF</b>', 'td' => array('colspan' => 2), 'value' => array(array(
|
||||
0 => array('kind' => 'select', 'name' => 'pdfStructure', 'options' => $pdfStructures),
|
||||
|
|
|
@ -240,7 +240,7 @@ if (sizeof($info) > 0) {
|
|||
echo ("<br><br><br>\n");
|
||||
echo "<fieldset><legend><b>PDF</b></legend>\n";
|
||||
echo ("<b>" . _('PDF structure') . ":</b> <select name=\"pdf_structure\">\n");
|
||||
$pdf_structures = getAvailablePDFStructures($scope);
|
||||
$pdf_structures = getPDFStructureDefinitions($scope);
|
||||
foreach($pdf_structures as $pdf_structure) {
|
||||
echo "<option " . (($pdf_structure == 'default') ? " selected" : "") . ">" . $pdf_structure . "</option>";
|
||||
}
|
||||
|
|
|
@ -225,7 +225,7 @@ if (sizeof($info) > 0) {
|
|||
echo ("<br><br><br>\n");
|
||||
echo "<fieldset><legend><b>PDF</b></legend>\n";
|
||||
echo ("<b>" . _('PDF structure') . ":</b> <select name=\"pdf_structure\">\n");
|
||||
$pdf_structures = getAvailablePDFStructures('host');
|
||||
$pdf_structures = getPDFStructureDefinitions($scope);
|
||||
foreach($pdf_structures as $pdf_structure) {
|
||||
echo "<option " . (($pdf_structure == 'default') ? " selected" : "") . ">" . $pdf_structure . "</option>";
|
||||
}
|
||||
|
|
|
@ -285,7 +285,7 @@ if (sizeof($info) != 0) {
|
|||
echo ("<br><br><br>\n");
|
||||
echo "<fieldset><legend><b>PDF</b></legend>\n";
|
||||
echo ("<b>" . _('PDF structure') . ":</b> <select name=\"pdf_structure\">\n");
|
||||
$pdf_structures = getAvailablePDFStructures($scope);
|
||||
$pdf_structures = getPDFStructureDefinitions($scope);
|
||||
foreach($pdf_structures as $pdf_structure) {
|
||||
echo "<option " . (($pdf_structure == 'default') ? " selected" : "") . ">" . $pdf_structure . "</option>";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue