| 12345678910111213141516171819202122 |
- <?php
- namespace zin;
- if(helper::hasFeature('deliverable'))
- {
- global $lang, $app;
- $app->control->loadModel('project');
- $executions = data('executions');
- foreach($executions as $execution)
- {
- if($execution->status == 'closed' && !empty($execution->deliverable) && $app->control->project->checkUploadedDeliverable($execution->id)) $execution->hasDeliverable = true;
- }
- query('formBatchPanel')->each(function($node) use ($executions)
- {
- $data = array_values($executions);
- $node->setProp('data', $data);
- });
- }
|