Cisla zakazniku predelany na linky s parametrem where
authorThomas Mudrunka <tomas@mudrunka.cz>
Fri, 24 Feb 2012 19:35:59 +0000 (20:35 +0100)
committerThomas Mudrunka <tomas@mudrunka.cz>
Fri, 24 Feb 2012 19:35:59 +0000 (20:35 +0100)
index.php

index cbefbd1e8803317d859c663f59dae5e28394a94a..3d5d5a49a7c01459b62db907fd10f20183f7c104 100755 (executable)
--- a/index.php
+++ b/index.php
@@ -376,6 +376,7 @@ EOF;
                        'room_id' => 'room_name',
                        'status_id' => 'status_name',
                        'item_author' => 'item_author_backend',
+                       'item_customer' => 'item_customer',
                );
 
                foreach($table as $id => $row) {
@@ -385,7 +386,8 @@ EOF;
                                        if($link != $title) unset($table[$id][$link]);
                                        switch($link) { //TODO: Move to array for easy configuration
                                                case 'item_author':
-                                                       $table[$id][$title]=$this->link($row[$title], '?where[item_author]=='.$row[$link], false);
+                                               case 'item_customer':
+                                                       $table[$id][$title]=$this->link($row[$title], "?where[$link]==".$row[$link], false);
                                                        break;
                                                default:
                                                        $table[$id][$title]=$this->link($row[$title], $type.'/'.$row[$link].'/');
This page took 0.115309 seconds and 4 git commands to generate.