From a278a42550720c2dc2840b6e5d2f827aaf3aae7a Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Fri, 24 Feb 2012 20:35:59 +0100 Subject: [PATCH] Cisla zakazniku predelany na linky s parametrem where --- index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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].'/'); -- 2.30.2