show last note modification date
[grauphel.git] / controller / guicontroller.php
index 534f18ff4bdc848130eed03feb32589dd3de6baa..6fffcb2f7377db128d076d395e94d10156661c5b 100644 (file)
@@ -121,7 +121,7 @@ class GuiController extends Controller
             )
         );
 
             )
         );
 
-        $selectedRawtag = null;
+        $selectedRawtag = 'grauphel:special:untagged';
         if (count($note->tags) > 0) {
             $selectedRawtag = $note->tags[0];
         }
         if (count($note->tags) > 0) {
             $selectedRawtag = $note->tags[0];
         }
@@ -149,7 +149,7 @@ class GuiController extends Controller
      */
     public function tag($rawtag)
     {
      */
     public function tag($rawtag)
     {
-        $notes = $this->getNotes()->loadNotesOverview(null, $rawtag);
+        $notes = $this->getNotes()->loadNotesOverview(null, $rawtag, true);
         usort(
             $notes,
             function($noteA, $noteB) {
         usort(
             $notes,
             function($noteA, $noteB) {