|
@@ -84,7 +84,7 @@ class Note extends Model
|
|
{
|
|
{
|
|
return $this->hasMany(Segment::class, 'note_id', 'id')
|
|
return $this->hasMany(Segment::class, 'note_id', 'id')
|
|
->where('id', '!=', $this->core_segment_id) // dont include core-segment
|
|
->where('id', '!=', $this->core_segment_id) // dont include core-segment
|
|
- ->where('is_active', true)
|
|
|
|
|
|
+ //->where('is_active', true)
|
|
->orderBy('position_index', 'asc');
|
|
->orderBy('position_index', 'asc');
|
|
}
|
|
}
|
|
|
|
|
|
@@ -93,7 +93,7 @@ class Note extends Model
|
|
return $this->hasMany(Segment::class, 'note_id', 'id')
|
|
return $this->hasMany(Segment::class, 'note_id', 'id')
|
|
->whereRaw("(left_or_right IS NULL OR left_or_right = 'LEFT')")
|
|
->whereRaw("(left_or_right IS NULL OR left_or_right = 'LEFT')")
|
|
->where('id', '!=', $this->core_segment_id) // dont include core-segment
|
|
->where('id', '!=', $this->core_segment_id) // dont include core-segment
|
|
- ->where('is_active', true)
|
|
|
|
|
|
+ //->where('is_active', true)
|
|
->orderBy('position_index', 'asc');
|
|
->orderBy('position_index', 'asc');
|
|
}
|
|
}
|
|
|
|
|
|
@@ -102,7 +102,7 @@ class Note extends Model
|
|
return $this->hasMany(Segment::class, 'note_id', 'id')
|
|
return $this->hasMany(Segment::class, 'note_id', 'id')
|
|
->where('left_or_right', 'RIGHT')
|
|
->where('left_or_right', 'RIGHT')
|
|
->where('id', '!=', $this->core_segment_id) // dont include core-segment
|
|
->where('id', '!=', $this->core_segment_id) // dont include core-segment
|
|
- ->where('is_active', true)
|
|
|
|
|
|
+ //->where('is_active', true)
|
|
->orderBy('position_index', 'asc');
|
|
->orderBy('position_index', 'asc');
|
|
}
|
|
}
|
|
|
|
|