Skip to content

Commit

Permalink
[PreventionPlanList] fix: date sort
Browse files Browse the repository at this point in the history
  • Loading branch information
evarisk-theo committed Sep 13, 2021
1 parent 7519e67 commit 93152fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions preventionplan_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
$cssforfield = (empty($val['css']) ? '' : $val['css']);
if ($key == 'status') $cssforfield .= ($cssforfield ? ' ' : '').'center';
if (!empty($arrayfields['t.'.$key]['checked'])) {
if (preg_match('/MaitreOeuvre/', $arrayfields['t.'.$key]['label']) || preg_match('/StartDate/', $arrayfields['t.'.$key]['label']) || preg_match('/EndDate/', $arrayfields['t.'.$key]['label']) || preg_match('/ExtSociety/', $arrayfields['t.'.$key]['label']) || preg_match('/NbIntervenants/', $arrayfields['t.'.$key]['label']) || preg_match('/NbInterventions/', $arrayfields['t.'.$key]['label']) || preg_match('/Location/', $arrayfields['t.'.$key]['label'])) {
if (preg_match('/MaitreOeuvre/', $arrayfields['t.'.$key]['label']) || preg_match('/ExtSociety/', $arrayfields['t.'.$key]['label']) || preg_match('/NbIntervenants/', $arrayfields['t.'.$key]['label']) || preg_match('/NbInterventions/', $arrayfields['t.'.$key]['label']) || preg_match('/Location/', $arrayfields['t.'.$key]['label'])) {
$disablesort = 1;
}
else {
Expand Down Expand Up @@ -438,7 +438,6 @@

if (empty($obj)) break; // Should not happen


// Store properties in $preventionplandocument
$preventionplan->setVarsFromFetchObj($obj);

Expand Down

0 comments on commit 93152fd

Please sign in to comment.