mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-13 15:16:38 +02:00
service new_task and style conf refactoring
This commit is contained in:
parent
14d1891695
commit
8607a42e34
18 changed files with 54 additions and 92 deletions
|
@ -753,10 +753,12 @@ elsif($q->param('request') eq "service_done"){
|
|||
if(ref($xresponse->{$article}) eq "HASH"){
|
||||
#$bw->log("service_done xresponse",$xresponse->{$article},"");
|
||||
|
||||
#if no new_task then select last service_id with work_duration < 1 day
|
||||
my $service_id = "";
|
||||
#select last service_id with work_duration < 1 day
|
||||
foreach my $id (sort { $xresponse->{$article}->{$a}->{mtime} cmp $xresponse->{$article}->{$b}->{mtime} } keys (%{$xresponse->{$article}})){
|
||||
if(!$q->param('new_task') && $q->param('work_val') ne "::new_task::"){
|
||||
foreach my $id (sort { $xresponse->{$article}->{$a}->{mtime} cmp $xresponse->{$article}->{$b}->{mtime} } keys (%{$xresponse->{$article}})){
|
||||
$service_id = $id if($id > 1);
|
||||
}
|
||||
}
|
||||
|
||||
my $rows=0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue