Skip to content

Commit

Permalink
1.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathologic committed May 27, 2022
1 parent d1c2e56 commit 8496c62
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions assets/snippets/FormLister/core/FormLister.abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,18 @@ public function setExternalFields($sources = 'array', $arrayParam = 'defaults')
}
break;
}
//Значения из $_GET
case 'get':
{
if (!empty($_source[1])) {
$keys = explode(',', $_source[1]);
$fields = $this->getDefaultsSourceValues($_GET, $keys);
if (isset($_source[2])) {
$prefix = $_source[2];
}
}
break;
}
//Массив значений указывается в параметре сессии
case 'session':
if (!empty($_source[1])) {
Expand Down
3 changes: 3 additions & 0 deletions assets/snippets/FormLister/docs/history.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## History
### 1.19.1
* [Enhancement] Внешний источник $_GET (Core).

### 1.19.0
* [Fix] Не работал параметр redirectTo, если значение - ссылка (Core).
* [Fix] Не работал редирект для авторизованных пользователей (Login).
Expand Down
2 changes: 1 addition & 1 deletion install/assets/plugins/userHelper.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* addition to FormLister
*
* @category plugin
* @version 1.19.0
* @version 1.19.1
* @internal @properties &model=Model;text;\\modUsers &logoutKey=Request key;text;logout &cookieName=Cookie Name;text;WebLoginPE &cookieLifetime=Cookie Lifetime, seconds;text;157680000 &maxFails=Max failed logins;text;3 &blockTime=Block for, seconds;text;3600 &trackWebUserActivity=Track web user activity;list;No,Yes;No
* @internal @events OnWebAuthentication,OnWebPageInit,OnPageNotFound,OnWebLogin
* @internal @modx_category Content
Expand Down
2 changes: 1 addition & 1 deletion install/assets/snippets/FormLister.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Form processor
*
* @category snippet
* @version 1.19.0
* @version 1.19.1
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @internal @modx_category Content
* @internal @installset base, sample
Expand Down

0 comments on commit 8496c62

Please sign in to comment.