Przeglądaj źródła

fixed bug in Notify

Piotr Labudda 8 lat temu
rodzic
commit
cd3cb5face
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      SE/se-lib/Route/Notify.php

+ 4 - 3
SE/se-lib/Route/Notify.php

@@ -641,14 +641,15 @@ class Route_Notify extends RouteBase {
 		if (empty($userNotifyList)) {
 			UI::alert('warning', "Brak zdefiniowanych powiadomień");
 		} else {
+			$this__printValue = [$this, 'printValue'];
 			UI::table([ // <table class="table table-hover">
 				'disable_lp' => true,
 				'@class' => 'table table-hover',
 				'cell_padding' => 8,
-				'rows' => array_map(function ($notify) {
+				'rows' => array_map(function ($notify) use ($usrLogin, $this__printValue) {
 					return [
-						'rodzaj' => $this->printValue('what', $notify['what']),
-						'jak często' => $this->printValue('when', $notify['when']),
+						'rodzaj' => $this__printValue('what', $notify['what']),
+						'jak często' => $this__printValue('when', $notify['when']),
 						'utworzony' => $notify['_created'],
 						'ostatnio uruchomiony' => $notify['last_exec_time'] ? $notify['last_exec_time'] : '<i>brak danych</i>',
 						'#' => UI::h('form', [ 'method' => "post", 'class' => "form-inline" ], [