studio-timeslot: add week in month

This commit is contained in:
Milan
2024-04-18 20:44:37 +02:00
parent f56ee0d53e
commit ea952a8021
9 changed files with 681 additions and 239 deletions

View File

@@ -67,7 +67,6 @@ sub insert($$) {
return unless defined $entry->{studio_id};
return unless defined $entry->{start};
return unless defined $entry->{end};
return unless defined $entry->{frequency};
my $dbh = db::connect($config);
return db::insert( $dbh, 'calcms_studio_timeslot_schedule', $entry );
@@ -82,7 +81,6 @@ sub update($$) {
return unless defined $entry->{schedule_id};
return unless defined $entry->{start};
return unless defined $entry->{end};
return unless defined $entry->{frequency};
$entry->{id} = $entry->{schedule_id};
delete $entry->{schedule_id};
@@ -100,8 +98,6 @@ sub update($$) {
};
db::put( $dbh, $query, \@bind_values );
#print "done\n";
$entry->{schedule_id} = $entry->{id};
delete $entry->{id};