Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
en:create:functions:markfail [15.01.2015 20:02] alexander.ritteren:create:functions:markfail [26.11.2016 14:56] admin
Line 39: Line 39:
 $items = getItems('AC01', 'all'); $items = getItems('AC01', 'all');
 foreach ($items as $item) { foreach ($items as $item) {
-  $idH = 'AC01_'.sprintf('%02d', $item); +  $idH = id('AC01', $item); 
-  $idM = 'AC02_'.sprintf('%02d', $item); +  $idM = id('AC02', $item); 
-  $idX = 'AC03_'.sprintf('%02d', $item);+  $idX = id('AC03', $item);
   if ((trim(value($idH)) == '') and (trim(value($idM)) == '') and (value($idX) != 2)) {   if ((trim(value($idH)) == '') and (trim(value($idM)) == '') and (value($idX) != 2)) {
     markFail($idH);     markFail($idH);
en/create/functions/markfail.txt · Last modified: 28.06.2021 18:05 by sophia.schauer
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki