Änderungen

keine Bearbeitungszusammenfassung
Zeile 40: Zeile 40:  
if basistypArtikelinfo[1]['GehörtZu'] ~= nil
 
if basistypArtikelinfo[1]['GehörtZu'] ~= nil
 
then
 
then
--loop über die GehörtZu angaben
+
--Wenn table loop über die GehörtZu angaben
n = 1
+
if (type(basistypArtikelinfo[1]['GehörtZu']) == "table")
while n <= table.getn(basistypArtikelinfo[1]['GehörtZu'])
+
then
do
+
n = 1
returnString = returnString .. '[[' .. basistypArtikelinfo[1]['GehörtZu'][n] ..']]'
+
while n <= table.getn(basistypArtikelinfo[1]['GehörtZu'])
n = n + 1
+
do
end
+
returnString = returnString .. '[[' .. basistypArtikelinfo[1]['GehörtZu'][n] ..']]'
 +
n = n + 1
 +
end
 +
else -- nur ein GehoertZu und damit keine tabelle sondern ein string
 +
returnString = returnString .. '[[' .. basistypArtikelinfo[1]['GehörtZu'] ..']]'
 +
end
 
end
 
end
 
returnString = returnString .. '</td>'
 
returnString = returnString .. '</td>'