mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Removed incrementer from non-asset event listeners
This commit is contained in:
parent
f35f8477d3
commit
a5870c888e
|
@ -28,8 +28,7 @@ class AccessoryObserver
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listen to the Accessory created event, and increment
|
* Listen to the Accessory created event when
|
||||||
* the next_auto_tag_base value in the settings table when i
|
|
||||||
* a new accessory is created.
|
* a new accessory is created.
|
||||||
*
|
*
|
||||||
* @param Accessory $accessory
|
* @param Accessory $accessory
|
||||||
|
@ -37,9 +36,6 @@ class AccessoryObserver
|
||||||
*/
|
*/
|
||||||
public function created(Accessory $accessory)
|
public function created(Accessory $accessory)
|
||||||
{
|
{
|
||||||
$settings = Setting::first();
|
|
||||||
$settings->increment('next_auto_tag_base');
|
|
||||||
|
|
||||||
$logAction = new Actionlog();
|
$logAction = new Actionlog();
|
||||||
$logAction->item_type = Accessory::class;
|
$logAction->item_type = Accessory::class;
|
||||||
$logAction->item_id = $accessory->id;
|
$logAction->item_id = $accessory->id;
|
||||||
|
|
|
@ -28,8 +28,7 @@ class ComponentObserver
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listen to the Component created event, and increment
|
* Listen to the Component created event when
|
||||||
* the next_auto_tag_base value in the settings table when i
|
|
||||||
* a new component is created.
|
* a new component is created.
|
||||||
*
|
*
|
||||||
* @param Component $component
|
* @param Component $component
|
||||||
|
@ -37,9 +36,6 @@ class ComponentObserver
|
||||||
*/
|
*/
|
||||||
public function created(Component $component)
|
public function created(Component $component)
|
||||||
{
|
{
|
||||||
$settings = Setting::first();
|
|
||||||
$settings->increment('next_auto_tag_base');
|
|
||||||
|
|
||||||
$logAction = new Actionlog();
|
$logAction = new Actionlog();
|
||||||
$logAction->item_type = Component::class;
|
$logAction->item_type = Component::class;
|
||||||
$logAction->item_id = $component->id;
|
$logAction->item_id = $component->id;
|
||||||
|
|
|
@ -28,8 +28,7 @@ class ConsumableObserver
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listen to the Consumable created event, and increment
|
* Listen to the Consumable created event when
|
||||||
* the next_auto_tag_base value in the settings table when i
|
|
||||||
* a new consumable is created.
|
* a new consumable is created.
|
||||||
*
|
*
|
||||||
* @param Consumable $consumable
|
* @param Consumable $consumable
|
||||||
|
@ -37,8 +36,6 @@ class ConsumableObserver
|
||||||
*/
|
*/
|
||||||
public function created(Consumable $consumable)
|
public function created(Consumable $consumable)
|
||||||
{
|
{
|
||||||
$settings = Setting::first();
|
|
||||||
$settings->increment('next_auto_tag_base');
|
|
||||||
|
|
||||||
$logAction = new Actionlog();
|
$logAction = new Actionlog();
|
||||||
$logAction->item_type = Consumable::class;
|
$logAction->item_type = Consumable::class;
|
||||||
|
|
|
@ -28,8 +28,7 @@ class LicenseObserver
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Listen to the License created event, and increment
|
* Listen to the License created event when
|
||||||
* the next_auto_tag_base value in the settings table when i
|
|
||||||
* a new license is created.
|
* a new license is created.
|
||||||
*
|
*
|
||||||
* @param License $license
|
* @param License $license
|
||||||
|
@ -37,8 +36,6 @@ class LicenseObserver
|
||||||
*/
|
*/
|
||||||
public function created(License $license)
|
public function created(License $license)
|
||||||
{
|
{
|
||||||
$settings = Setting::first();
|
|
||||||
$settings->increment('next_auto_tag_base');
|
|
||||||
|
|
||||||
$logAction = new Actionlog();
|
$logAction = new Actionlog();
|
||||||
$logAction->item_type = License::class;
|
$logAction->item_type = License::class;
|
||||||
|
|
Loading…
Reference in a new issue