Skip to content

Commit 798f1e2

Browse files
committed
- fixed bug with ..._LIST
- fixed bug in test data
1 parent ef694f0 commit 798f1e2

5 files changed

Lines changed: 50 additions & 5 deletions

File tree

admin/test.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?php
2+
3+
/*
4+
You may not change or alter any portion of this comment or credits
5+
of supporting developers from this source code or any supporting source code
6+
which is considered copyrighted (c) material of the original comment or credit authors.
7+
8+
This program is distributed in the hope that it will be useful,
9+
but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11+
*/
12+
13+
/**
14+
* modulebuilder module.
15+
*
16+
* @copyright XOOPS Project (https://xoops.org)
17+
* @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
18+
*
19+
* @since 2.5.0
20+
*
21+
* @author Txmod Xoops http://www.txmodxoops.org
22+
*
23+
*/
24+
25+
use XoopsModules\Modulebuilder\Common\TableChecker;
26+
27+
// Define main template
28+
$templateMain = 'modulebuilder_index.tpl';
29+
30+
include __DIR__ . '/header.php';
31+
32+
$tablechecker = new \XoopsModules\Modulebuilder\Common\TableChecker('modulebuilder');
33+
$result = $tablechecker->processSQL();
34+
35+
/*
36+
use XoopsModules\Wgdiaries\Common\TableChecker;
37+
$tablechecker = new \XoopsModules\Wgdiaries\Common\TableChecker('wgdiaries', 1);
38+
$result = $tablechecker->processSQL();
39+
*/
40+
41+
var_dump($result);
42+
43+
include __DIR__ . '/footer.php';

class/Files/admin/AdminXoopsCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function getAdminItemButton($language, $tableName, $stuTableSoleName, $op
102102
break;
103103
case 'default':
104104
default:
105-
$ret = $aM . "{$language}{$stuTableSoleName}_{$stuType}, '{$tableName}.php{$op}', '{$type}');\n";
105+
$ret = $aM . "{$language}{$stuType}_{$stuTableSoleName}, '{$tableName}.php{$op}', '{$type}');\n";
106106
break;
107107
}
108108

docs/changelog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
- fixed bug if no permissions are used (goffy)
2525
- added default value for date/time form field (goffy)
2626
- fixed bug in permissionHandler (goffy)
27+
- fixed bug with ..._LIST (mjoel/goffy)
28+
- fixed bug in test data (mjoel/goffy)
2729

2830
<h5>3.04 Final [2020-11-11]</h5> Dev: XOOPS 2.5.11, PHP 7.4.5
2931
<hr>

testdata/english/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
header('HTTP/1.0 404 Not Found');
2+
header('HTTP/1.0 404 Not Found');

testdata/english/modulebuilder_fields.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,12 @@
173173
field_order: '2'
174174
field_name: art_cat
175175
field_type: '2'
176-
field_value: '8'
176+
field_value: '10'
177177
field_attribute: '1'
178178
field_null: '2'
179179
field_default: ''
180180
field_key: '1'
181-
field_element: '1'
181+
field_element: '31'
182182
field_parent: '0'
183183
field_admin: '1'
184184
field_inlist: '1'
@@ -283,7 +283,7 @@
283283
field_mid: '1'
284284
field_tid: '2'
285285
field_order: '6'
286-
field_name: art_online
286+
field_name: art_status
287287
field_type: '2'
288288
field_value: '1'
289289
field_attribute: '1'

0 commit comments

Comments
 (0)