From: Thomas Mudrunka Date: Fri, 24 Feb 2012 19:35:59 +0000 (+0100) Subject: Cisla zakazniku predelany na linky s parametrem where X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=a278a42550720c2dc2840b6e5d2f827aaf3aae7a;p=mirrors%2FSokoMan.git Cisla zakazniku predelany na linky s parametrem where --- diff --git a/index.php b/index.php index cbefbd1..3d5d5a4 100755 --- 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].'/');