1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-04 11:24:54 +02:00

299 Commits

Author SHA1 Message Date
Cameron
4435e6a66b Remove debug info 2019-03-02 10:26:12 -08:00
Cameron
a7d047498e PHPDoc fixes. 2019-03-02 10:09:16 -08:00
Cameron
1dbc90143f Case cleanup toHtml() should be toHTML() 2019-02-26 12:22:36 -08:00
Cameron
a6b9b92c9e Improve debug message. 2019-02-14 14:05:44 -08:00
Cameron
b56f81fa23 PHP 7.3 fix. 2019-02-07 16:34:00 -08:00
Cameron
12dece2cc6 Admin-UI: Allow searching of type=method fields with integer data. 2018-11-03 15:15:31 -07:00
Cameron
8c73bf1434 Issue #2146 Partial compatibility fix. Testing required. 2018-09-18 17:58:32 -07:00
Cameron
688db76a96 Admin-ui: New method: beforePrefsSave($new_data, $old_data); 2018-09-10 10:42:54 -07:00
Cameron
00e2663162 Added token to x-editable 2018-09-04 15:15:50 -07:00
Cameron
8e663dbf74 admin-ui improved inline-editing debugging log information. 2018-09-03 11:43:44 -07:00
Cameron
a2e082c75d MediaPicker Icon fix. 2018-08-13 14:44:55 -07:00
Cameron
5dc790cd22 Provide useful debug information to developers wishing to create custom Filter and Batch handling methods.
Media-Manager updated to use the custom batch Handler method.
2018-08-07 17:05:43 -07:00
Cameron
bac96528fc Token fix. 2018-07-16 12:39:32 -07:00
Achim Ennenbach
0e9f9d4e46 fixes #3065 Added a method to translate wildcards to mysql counterparts 2018-07-06 08:36:35 +02:00
Cameron
1edd4a008f
Merge pull request #3210 from Deltik/fix-3198
Fixes #3198 - Legacy prefs, missing forums
2018-06-23 17:10:13 -07:00
Achim Ennenbach
e96aea8748
In case the 2 or more join aliases point to the same table, now
the first alias get's saved instead of the last one.
2018-06-21 23:28:16 -05:00
Nick Liu
41f8e78489
Disable tree format if model has filters
Parent-child relationship tables (trees) can only be constructed if
the entire table is loaded. When WHERE filters are applied to the
table, the tree cannot be made, which causes #3204.

When a filter is active, a tree representation is no longer
appropriate because the filter can filter out parents of a matched
row, which breaks the concept of a tree.

To resolve this and restore search functionality, this commit disables
the sort_parent of the tree model in order to activate the
e_tree_model::getRowsList() method and avoid the tree logic entirely.

Fixes: #3204
Supersedes: #3208
2018-06-21 23:24:57 -05:00
Cameron
d7e3caae83 Admin-ui: Improved adminMenu highlighting when custom uri in use.
Plugin Builder: added menu divider example.
2018-05-23 16:29:37 -07:00
Cameron
ed36008286 Non-standard arg_separator.output value fix. 2018-05-04 17:58:25 -07:00
Cameron
0aab273723 Admin-ui: Throw error if $pluginName does not match an installed plugin. 2018-03-07 11:42:30 -08:00
Nick Liu
8a675021ff
Hybrid e_tree_model flat lists or parent-children
e_tree_model is apparently used for flat lists as well as parent-child
relationships (trees). Trees are expected to be far smaller than possible flat
lists. Very large flat lists (10,000+ rows or greater) are rendered very slowly
because of the tree computation overhead.

This change figures out whether a flat list or a tree is requested and chooses
the appropriate code to run based on what is requested. Trees run the more
expensive code while flat lists are returned as-is.

In addition, the tree rendering code has been optimized. Optimizations:

* Unchanging tree node ID is set once instead of inside a foreach() loop
* The parent-child query is now sorted by the sort parent ID so that each move
  rows to tree nodes iteration doesn't have to run through every remaining row

Fixes: #3062
2018-03-06 16:08:11 -06:00
Cameron
1494c18660 Admin-UI: Added "Is Empty" option to type=number when filter is true. 2018-03-05 17:15:49 -08:00
Cameron
48b3318ecb Admin-UI: $field 'filter' attribute now accepts 'future' and 'both', defaults to 'past' when set to true. ie. search future dates, past/future dates or past dates. 2018-03-05 14:37:56 -08:00
Cameron
f1460787a1 Admin-ui Fix date filter. 2018-03-05 13:45:11 -08:00
Deltik
b3a274010e
Refactored e_tree_model for Code Climate 2018-02-09 05:40:53 -06:00
Deltik
2167a69a50
Record count no longer depends on subclass impl.
Subclasses may forget to run code to do a total record count, which
leads to output showing "Total Records: 0" on some pages with lists,
like `/e107_admin/links.php`.

This commit cuts out the record counting from the getList() method of
any e_admin_form_ui subclasses and the base class so that subclasses do
not have to reimplement record counting.

The caveat with this implementation is that it violates the Law of
Demeter, as evidenced by the new chained method call:

    $this->getController()->getTreeModel()->getTotal()

Jumping through two objects to get a value is not ideal, but this is the
code we have to work with at the moment.
2018-02-09 04:57:01 -06:00
Deltik
511bb9eae9
Implemented custom sorting for e_tree_model
In #3025, e_tree_model sorting was reimplemented in pure PHP, but this
broke custom sorting (like `?field=cat_name&asc=desc`).

This commit introduces a hack that simulates a subset of MySQL/MariaDB
ORDER BY clauses, which should be sufficient for all known custom
sorting that can be requested.

Tree formatting is always preserved, but custom sorting will apply for
all items at a certain depth under the same parent.

This commit also contains some minor formatting fixes and makes a minor
change to some regex to make use of non-capturing groups.

Fixes: #3029
2018-02-09 04:37:48 -06:00
Nick Liu
e5a0935726
Reimplement e_tree_model sorting in pure PHP
Eliminated e107 dependency on the MySQL/MariaDB CREATE PROCEDURE permission

As a bonus, any attempt to use e107's native custom sorting (e.g.
`?field=cat_name&asc=desc`) will preserve the correct tree hierarchy.  The past
behavior was to sort as requested but keep showing depth, even though the
apparent tree hierarchy would be wrong.

Fixes: #3015
Supercedes: #2929
2018-01-28 12:54:20 -06:00
Cameron
0671024c79 Issue #2970 btn-default > btn-default btn-secondary 2018-01-10 15:11:12 -08:00
Cameron
4476336e22 Admin-ui: Fix for size of default plugin-icon in admin menu. 2018-01-09 11:21:16 -08:00
Cameron
2788e9745c Image to Bbcode routines and batch conversion option added to admin News area (when in debug mode) 2017-12-27 20:58:59 -08:00
Cameron
1a306412f4 Reverted Issue #2929 until we can get it working correctly. 2017-12-23 11:54:25 -08:00
Cameron
a0d5e2df19 Tweaked 2017-12-21 16:30:45 -08:00
Lóna Lore
4ef9e78935 Ability to use ASC/DESC direction in getTreeModelSorted() 2017-12-22 00:51:44 +01:00
Lóna Lore
1b39eae368 getTreeModelSorted() 2017-12-22 00:39:01 +01:00
Lóna Lore
c0f66a45fc "_depth" calculation for admin_ui 2017-12-21 21:54:06 +01:00
Cameron
ad52a3ccfc Image picker re-style. 2017-12-19 16:27:57 -08:00
Cameron
e1dda1570c Fix for breadcrumb title with menu aliases. 2017-12-19 13:02:16 -08:00
Cameron
0bf882c0a7 Admin-ui: Experimental Parent/Child tree-sorting code. 2017-12-18 14:07:50 -08:00
Cameron
3d93dad248 Fixes #2862 - Search icon positioning fix across all admin-area skins. 2017-11-17 14:57:52 -08:00
Cameron
ff06f83331 Admin-ui language indicator alignment fix. 2017-11-10 17:15:34 -08:00
Cameron
85029536e7 Fixes #2834 - Batch Copy wasn't redirecting. 2017-10-30 13:39:49 -07:00
Cameron
0fe0bf57bf #2794 Added toggleButton param to admin-ui: $grid 2017-09-22 18:12:47 -07:00
Cameron
c7e5af666d Issue #2794 Enhancement: Grid View toggle button for Admin-UI 2017-09-22 14:55:44 -07:00
lonalore
5b87c9f9e2 Quickfix for Media Manager filtering. 2017-07-21 09:13:54 +02:00
Cameron
7508764f18 Fixes #2722 - html fix. 2017-07-05 14:29:33 -07:00
Cameron
f58e00c41b Admin-ui: Auto-display sort button when sortField is not empty and 'sort' parm is not set. 2017-05-08 18:47:51 -07:00
Cameron
caee889b7f Fixes Plugin Database structure update detection. 2017-04-21 14:21:29 -07:00
Cameron
40558eeedb Fixes #2588 - admin-menu icon. 2017-04-21 12:13:12 -07:00
Cameron
c766afd954 Theme selection fix. Admin-ui carousel pagination fix. 2017-04-13 08:54:59 -07:00