set() function doesn't work without specifying $teamId
if Teams is disabled
#69
Labels
bug
Something isn't working
$teamId
if Teams is disabled
#69
Laravel Settings
v3.4.0
Laravel Version
v10.48.12
Bug description
Having Teams feature disabled, when using
Setting::set()
without specifying the$teamId
parameter is resulting inColumn not found: 1054 Unknown column 'team_id' in 'where clause'
errorFrom what I see, the
set
function of the Setting model is defaulting the$teamId
parameter tonull
, while in the condition inside the function is checking with!== false
Steps to reproduce
Setting::set('key', $value)
Relevant log output
No response
The text was updated successfully, but these errors were encountered: