remove codeigniter
This commit is contained in:
@@ -78,7 +78,7 @@ class PurchaseOrderItem extends BaseModel
|
||||
public static function rules(bool $updating = false): array
|
||||
{
|
||||
// if updating, you might allow partial updates (sometimes)
|
||||
// keep strict by default to match CI behavior
|
||||
// keep strict by default to match legacy behavior
|
||||
return [
|
||||
'purchase_order_id' => [$updating ? 'sometimes' : 'required', 'integer', 'min:1', 'exists:purchase_orders,id'],
|
||||
'supply_id' => [$updating ? 'sometimes' : 'required', 'integer', 'min:1', 'exists:supplies,id'],
|
||||
|
||||
Reference in New Issue
Block a user