diff --git a/app/Models/Book.php b/app/Models/Book.php index c7c0ae07..73c23800 100755 --- a/app/Models/Book.php +++ b/app/Models/Book.php @@ -95,7 +95,7 @@ class Book extends Model $oSelf = $oSelf->whereRaw($aRagOption["where"]); } - if (isset($aRagOption["todo_show_type"])) { + if ($oParentRag->type == "todo") { $oSelf = $oSelf->where("rank", "!=", "done"); $oSelf = $oSelf->where("rank", "!=", "block"); }