mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 05:53:58 +00:00
Admin Workflow - Fix Reported Issues - group tab not showing records correctly
This commit is contained in:
@@ -5,6 +5,7 @@ namespace App\Classes\General\Eloquent\Filters;
|
||||
|
||||
use App\Models\QAUserAnswerSelected;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class IdAfter implements Filter
|
||||
{
|
||||
@@ -16,9 +17,10 @@ class IdAfter implements Filter
|
||||
*/
|
||||
public static function apply(Builder $builder, $value)
|
||||
{
|
||||
[$id, $questionGroups] = $value;
|
||||
[$id, $reference, $questionGroups] = $value;
|
||||
|
||||
$nextId = QAUserAnswerSelected::where('id', '>', $id)
|
||||
->where('reference', $reference)
|
||||
->whereIn('answer', $questionGroups)
|
||||
->orderBy('id', 'asc')
|
||||
->limit(1)
|
||||
|
||||
+1
-1
@@ -166,7 +166,7 @@
|
||||
},
|
||||
created(){
|
||||
this.options['reference'] = this.item.reference;
|
||||
this.options['id_after'] = [this.item.id, this.item.question_groups];
|
||||
this.options['id_after'] = [this.item.id, this.item.reference, this.item.question_groups];
|
||||
},
|
||||
methods: {
|
||||
expand(){
|
||||
|
||||
@@ -110,7 +110,7 @@
|
||||
},
|
||||
created(){
|
||||
this.options['reference'] = this.item.reference;
|
||||
this.options['id_after'] = [this.item.id, this.item.question_groups];
|
||||
this.options['id_after'] = [this.item.id, this.item.reference, this.item.question_groups];
|
||||
},
|
||||
methods: {
|
||||
expand(){
|
||||
|
||||
Reference in New Issue
Block a user