Bug 20644: (follow-up) Dont allow NULL value when the dropdown doesnt exist

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2025-08-21 20:36:53 +00:00
parent ef8e3f6786
commit 126afcbab1
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 4 additions and 1 deletions

View File

@ -121,7 +121,10 @@ if ( $op eq 'add_form' ) {
$itemtype->rentalcharge_hourly_calendar($rentalcharge_hourly_calendar);
$itemtype->automatic_checkin($automatic_checkin);
$itemtype->bookable($bookable);
$itemtype->checkprevcheckout($checkprevcheckout);
if ( defined $checkprevcheckout ) {
$itemtype->checkprevcheckout($checkprevcheckout);
}
eval {
$itemtype->store;