Alan Lam преди 7 години
родител
ревизия
d69e2bf088
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      controllers/customer_view.php

+ 4 - 4
controllers/customer_view.php

@@ -10,10 +10,10 @@ Core::addBreadcrumb("/account/customers", "Customers");
 Core::addBreadcrumb("/account/customers/$id", $page_title);
 Core::addBreadcrumb("/account/customers/$id", $page_title);
 
 
 $icons = [];
 $icons = [];
-$icons[] = new AccountIcon(__("Projects"), "/account/projects/{$id}", "list");
-$icons[] = new AccountIcon(__("Locations"), "/account/locations/{$id}", "map-marker");
-$icons[] = new AccountIcon(__("Reports"), "/account/reports/{$id}", "chart-pie");
-$icons[] = new AccountIcon(__("Templates"), "/account/templates/{$id}", "file-alt");
+$icons[] = new AccountIcon(__("Projects"), "/account/projects?customer_id={$id}", "list");
+$icons[] = new AccountIcon(__("Locations"), "/account/locations?customer_id={$id}", "map-marker");
+$icons[] = new AccountIcon(__("Reports"), "/account/reports?customer_id={$id}", "chart-pie");
+$icons[] = new AccountIcon(__("Templates"), "/account/templates?customer_id={$id}", "file-alt");
 
 
 View::includeOnce("header", compact("page_title"));
 View::includeOnce("header", compact("page_title"));
 View::include("customer", compact("customer", "icons"));
 View::include("customer", compact("customer", "icons"));