Sfoglia il codice sorgente

updated Debug style

Piotr Labudda 9 anni fa
parent
commit
d6a09bdb75
3 ha cambiato i file con 7 aggiunte e 4 eliminazioni
  1. 1 2
      SE/se-lib/Data_Source.php
  2. 5 1
      SE/se-lib/Route/Debug.php
  3. 1 1
      SE/se-lib/UserAcl.php

+ 1 - 2
SE/se-lib/Data_Source.php

@@ -474,8 +474,7 @@ class Data_Source {
 
 	public function _parseSqlWhere($params = array()) {
 
-		// default filter value
-		if (empty($params['sf_Access'])) $params['sf_Access'] = 'HIDE';
+		if (empty($params['sf_Access'])) $params['sf_Access'] = 'HIDE'; // default filter value
 
 		$sql_where = '';
 		// ... parse filters

+ 5 - 1
SE/se-lib/Route/Debug.php

@@ -239,7 +239,11 @@ class Route_Debug extends RouteBase {
     // UI::menu();
     UI::setTitle("Debug");
     echo UI::h('div', ['class'=>'container'], [
-      UI::h('a', ['href'=>$this->getLink()], "wróć")
+      UI::h('a', ['href'=>$this->getLink()], "wróć"),
+      UI::h('span', ['style'=>'padding:0 6px'], "|"),
+      UI::h('span', ['class' => 'label label-'.(DBG::isActive() ? "success" : "danger")], "(Debug - " . (DBG::isActive() ? "włączony" : "wyłączony") . ") "),
+      UI::h('span', ['style'=>'padding:0 6px'], "|"),
+      UI::h('button', ['onClick'=>'location.reload()', 'class'=>"btn btn-xs btn-default"], "odśwież"),
     ]);
     try {
       $filerUser = V::get('user', '', $_REQUEST);// TODO: show another user debug

+ 1 - 1
SE/se-lib/UserAcl.php

@@ -280,7 +280,7 @@ class UserAcl {
 							foreach ($vTable->getFields() as $field) {
 								$fldInfo = V::get($field->getName(), null, $fldsInfo);
 								if ($fldInfo) {
-									if (!array_key_exists($fldInfo->ID, $fieldsConfig)) {//if (!$tableAcl->hasField($fldInfo->ID)) {
+									if (!array_key_exists($fldInfo->ID, $fieldsConfig)) {
 										$fieldsConfig[$fldInfo->ID] = array();
 										$fieldsConfig[$fldInfo->ID]['ID_CELL'] = $fldInfo->ID;
 										$fieldsConfig[$fldInfo->ID]['CELL_NAME'] = $fldInfo->DESC;