Skip to content

Commit

Permalink
Fixed get_definition_by_name so that it does not get deleted
Browse files Browse the repository at this point in the history
definitions.
  • Loading branch information
SpookedByRoaches authored and jekkos committed May 30, 2024
1 parent a88a75c commit 95a73ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Models/Attribute.php
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ public function get_definition_by_name(string $definition_name, $definition_type
{
$builder = $this->db->table('attribute_definitions');
$builder->where('definition_name', $definition_name);
$builder->where('deleted', 0);

if($definition_type)
{
Expand Down

0 comments on commit 95a73ad

Please sign in to comment.