Skip to content

Commit

Permalink
new modifs
Browse files Browse the repository at this point in the history
  • Loading branch information
bayarder committed Dec 6, 2024
1 parent 37b56cb commit 01ab9d7
Show file tree
Hide file tree
Showing 76 changed files with 1,838 additions and 348 deletions.
5 changes: 5 additions & 0 deletions db/migrations/20241001134535_notepads_migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public function change()
$rows = $stmt->fetchAll();
foreach ($rows as $row)
{
if ($row['itemtype'] == 'Entity')
{
$row['items_id'] = $row['items_id'] + 1;
}

$data = [
[
'id' => $row['id'],
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Businesscriticity.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Businesscriticity extends Common

public function category(): BelongsTo
{
return $this->belongsTo('\App\Models\Businesscriticity');
return $this->belongsTo('\App\Models\Businesscriticity', 'businesscriticity_id');
}

public function entity(): BelongsTo
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Definitions/Certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ public static function getRelatedPages($rootUrl)
],
[
'title' => $translator->translatePlural('Associated item', 'Associated items', 2),
'icon' => 'caret square down outline',
'icon' => 'desktop',
'link' => $rootUrl . '/associateditems',
],
[
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Definitions/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static function getRelatedPages($rootUrl)
],
[
'title' => $translator->translatePlural('Associated item', 'Associated items', 2),
'icon' => 'caret square down outline',
'icon' => 'desktop',
'link' => $rootUrl . '/associateditems',
],
[
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Definitions/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ public static function getRelatedPages($rootUrl)
],
[
'title' => $translator->translatePlural('Associated item', 'Associated items', 2),
'icon' => 'caret square down outline',
'icon' => 'desktop',
'link' => $rootUrl . '/attacheditems',
],
[
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Definitions/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function getDefinition()
'id' => 13,
'title' => $translator->translate('As child of'),
'type' => 'dropdown_remote',
'name' => 'group',
'name' => 'child',
'dbname' => 'group_id',
'itemtype' => '\App\Models\Group',
'fillable' => true,
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Definitions/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ public static function getRelatedPages($rootUrl)
],
[
'title' => $translator->translatePlural('Associated item type', 'Associated item types', 2),
'icon' => 'caret square down outline',
'link' => '',
'icon' => 'desktop',
'link' => $rootUrl . '/associateditemtypes',
],
[
'title' => $translator->translate('Historical'),
Expand Down
18 changes: 18 additions & 0 deletions src/Models/Definitions/Ola.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace App\Models\Definitions;

class Ola
{
public static function getDefinition()
{
global $translator;
return [];
}

public static function getRelatedPages($rootUrl)
{
global $translator;
return [];
}
}
2 changes: 1 addition & 1 deletion src/Models/Definitions/Projectstate.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static function getDefinition()
[
'id' => 12,
'title' => $translator->translate('Finished state'),
'type' => 'input',
'type' => 'boolean',
'name' => 'is_finished',
'fillable' => true,
],
Expand Down
Loading

0 comments on commit 01ab9d7

Please sign in to comment.