mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-14 07:36:29 +02:00
sig feedback counter select fix
This commit is contained in:
parent
8bcc46416c
commit
39e3a0568e
3 changed files with 20 additions and 25 deletions
|
@ -565,7 +565,7 @@ sub service_update(){
|
|||
my $update_pos = {
|
||||
table => "contenttranspos",
|
||||
mtime => "now()",
|
||||
int28 => "null",
|
||||
int28 => "1",
|
||||
};
|
||||
$dbt->update_record($dbh,$update_pos,$ctpos);
|
||||
|
||||
|
@ -1572,7 +1572,7 @@ sub booking_update(){
|
|||
|
||||
#user_miniquest_count
|
||||
my $user_miniquest_count = $auth->{int23} || 0;
|
||||
if($user_miniquest_count <= 4){
|
||||
if($user_miniquest_count <= 3){
|
||||
$user_miniquest_count++;
|
||||
my $update_op = {
|
||||
table => "contentadr",
|
||||
|
@ -1731,7 +1731,7 @@ sub user_bikes_occupied(){
|
|||
my $self = shift;
|
||||
my $q = shift;
|
||||
my $auth = shift;
|
||||
#my $station_lock_state = shift || "";
|
||||
my $show_dialog = shift || "";
|
||||
|
||||
my $pref = {
|
||||
table => "contenttrans",
|
||||
|
@ -1745,10 +1745,9 @@ sub user_bikes_occupied(){
|
|||
"ct.close_time" => "is::null",
|
||||
};
|
||||
|
||||
#station_lock_stat enables a OR condition to view available as requested/occupied
|
||||
##selects also station_lock_state=locking bikes to view once miniquery
|
||||
#true if not defined! it will only defined on booking_request, because there must be available
|
||||
#$pref->{station_lock_state} = "3" if(!$station_lock_state);
|
||||
##selects also int28 > 0 bikes to view once miniquery
|
||||
#it will only defined on booking_request, because there must be available
|
||||
$pref->{show_dialog} = "1" if($show_dialog);
|
||||
my $record = $dbt->collect_post($dbh,$pref);
|
||||
return $record;
|
||||
}#end user_bikes_occupied
|
||||
|
@ -1794,7 +1793,7 @@ sub rentals(){
|
|||
|
||||
if($record->{$id}->{int28}){
|
||||
|
||||
$return->{$id}->{state} = "returned";
|
||||
#$return->{$id}->{state} = "returned";
|
||||
#only for project=Bayern and developer enabled
|
||||
if($dbt->{operator}->{$varenv{dbname}}->{project} eq "Bayern" && $auth->{int23} < 4){
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue