Skip to content

A free open source IT asset/license management system

renamed variable

Godfrey M82bdd43168e5
diff --git a/database/factories/CheckoutAcceptanceFactory.php b/database/factories/CheckoutAcceptanceFactory.php
index b53885807f..1cd139176e 100644
--- a/database/factories/CheckoutAcceptanceFactory.php
+++ b/database/factories/CheckoutAcceptanceFactory.php
@@ -23,23 +23,23 @@ class CheckoutAcceptanceFactory extends Factory
'assigned_to_id' => User::factory(),
];
}
- protected static bool $skipAutoAssign = false;
+ protected static bool $skipActionLog = false;
public function withoutActionLog(): static
{
// turn off for this create() call
- static::$skipAutoAssign = true;
+ static::$skipActionLog = true;
// ensure it turns back on AFTER creating
return $this->afterCreating(function () {
- static::$skipAutoAssign = false;
+ static::$skipActionLog = false;
});
}
public function configure(): static
{
return $this->afterCreating(function (CheckoutAcceptance $acceptance) {
- if (static::$skipAutoAssign) {
+ if (static::$skipActionLog) {
return; // short-circuit
}
if ($acceptance->checkoutable instanceof Asset) {