• DevPilot's avatar
    fix: optional date inputs posted as '' crashed saves across 17 controllers · 831a3e96
    DevPilot authored
    MySQL strict mode rejects '' for a DATE/DATETIME column, so any form
    with an untouched optional date aborted the whole insert with
    "Incorrect date value: ''". This was not one bug — quote responses,
    vouchers, bounced cheques, bank loans, documentary credits, letters of
    guarantee, settlements, tenders, auctions, committees, payments,
    overtime, permission requests and more all passed the raw post value
    straight through.
    
    Adds Request::postDate(), which returns NULL for an empty date field,
    and routes all 33 optional-date call sites through it. QuoteService
    also guards expiry_date directly since it is called from more than one
    path.
    831a3e96
Name
Last commit
Last update
..
Contracts Loading commit data...
DTO Loading commit data...
Events Loading commit data...
Exceptions Loading commit data...
Facades Loading commit data...
Middleware Loading commit data...
Migration Loading commit data...
Providers Loading commit data...
Registries Loading commit data...
Seeder Loading commit data...
Testing Loading commit data...
ApiController.php Loading commit data...
ApiResponse.php Loading commit data...
App.php Loading commit data...
Autoloader.php Loading commit data...
CSRF.php Loading commit data...
Cache.php Loading commit data...
Config.php Loading commit data...
Controller.php Loading commit data...
Database.php Loading commit data...
DebugBar.php Loading commit data...
EventBus.php Loading commit data...
ExceptionHandler.php Loading commit data...
Facade.php Loading commit data...
Helpers.php Loading commit data...
Logger.php Loading commit data...
Model.php Loading commit data...
ModuleRegistry.php Loading commit data...
Pagination.php Loading commit data...
QueryBuilder.php Loading commit data...
Repository.php Loading commit data...
Request.php Loading commit data...
Response.php Loading commit data...
Router.php Loading commit data...
ServiceProvider.php Loading commit data...
Session.php Loading commit data...
Template.php Loading commit data...
Validator.php Loading commit data...