Skip to content

Commit 813fc5e

Browse files
committed
2 parents a074f53 + 51e7035 commit 813fc5e

File tree

17 files changed

+1068
-944
lines changed

17 files changed

+1068
-944
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,6 @@ composer.lock
5959

6060
# ignore phpunit cache files
6161
.phpunit.result.cache
62+
63+
# ignore .ddev dir
64+
/.ddev/

_build/build.sample.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ composer.command = composer
1414
#project.name.fs = modx
1515

1616
# Override to set the version and release strings
17-
#modx.core.version = 3.1.0
17+
#modx.core.version = 3.1.1
1818
#modx.core.release = dev
1919

2020
# these properties require a local Git clone in order to produce distributions
@@ -28,7 +28,7 @@ composer.command = composer
2828
#build.nominify = true
2929

3030
# Override to pull source from a specific ref in the git repository
31-
#build.src.tree = v3.1.0-pl
31+
#build.src.tree = v3.1.1-pl
3232

3333
# Override to turn off the additional of timestamps to the distribution packages (used for nightlies)
3434
#build.timestamp = false

_build/build.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
<property name="project.manager.dir" value="${project.root.dir}/manager" />
2121

2222
<!-- Set the project version -->
23-
<property name="modx.core.version" value="3.1.0" />
24-
<property name="modx.core.release" value="pl" />
23+
<property name="modx.core.version" value="3.1.1" />
24+
<property name="modx.core.release" value="dev" />
2525

2626
<!-- Set some common build properties -->
2727
<property name="build.dir" value="${project.basedir}" />

core/docs/changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
This file shows the changes in recent releases of MODX. The most current release is usually the
33
development release, and is only shown to give an idea of what's currently in the pipeline.
44

5+
MODX Revolution 3.1.1-pl (TBD)
6+
====================================
7+
8+
59
MODX Revolution 3.1.0-pl (December 18, 2024)
610
====================================
711
- Make date display consistent across manager components (#16604)

core/docs/version.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
$v= [];
33
$v['version']= '3'; // Current version.
44
$v['major_version']= '1'; // Current major version.
5-
$v['minor_version']= '0'; // Current minor version.
6-
$v['patch_level']= 'pl'; // Current patch level.
5+
$v['minor_version']= '1'; // Current minor version.
6+
$v['patch_level']= 'dev'; // Current patch level.
77
$v['code_name']= 'Revolution'; // Current codename.
88
$v['distro']= '@git@';
99
$v['full_version']= $v['version'] . ($v['major_version'] ? ".{$v['major_version']}" : ".0") . ($v['minor_version'] ? ".{$v['minor_version']}" : ".0") . ($v['patch_level'] ? "-{$v['patch_level']}" : "");

core/src/Revolution/Processors/Security/User/Create.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ public function sendNotificationEmail() {
290290
* @return array|string
291291
*/
292292
public function cleanup() {
293-
$passwordNotifyMethod = $this->getProperty('passwordnotifymethod', 's');
294-
if (!empty($passwordNotifyMethod) && $passwordNotifyMethod == 's') {
293+
$passwordNotifyMethod = $this->getProperty('passwordnotifymethod');
294+
if (!empty($passwordNotifyMethod) && $passwordNotifyMethod === 's') {
295295
return $this->success($this->modx->lexicon('user_created_password_message', [
296296
'username' => $this->object->get('username'),
297297
'password' => $this->newPassword,

core/src/Revolution/Processors/Workspace/Packages/GetList.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ public function getSortClassKey()
108108
*/
109109
public function prepareRow(xPDOObject $object)
110110
{
111-
if ($object->get('installed') === '0000-00-00 00:00:00') {
112-
$object->set('installed', null);
113-
}
114111
$packageArray = $object->toArray();
112+
113+
$isInstalled = !$this->formatter->isEmpty($packageArray['installed']);
114+
$packageArray['isInstalled'] = $isInstalled;
115115
$packageArray = $this->getVersionInfo($packageArray);
116116
$packageArray = $this->formatDates($packageArray);
117-
$packageArray['iconaction'] = empty($packageArray['installed']) ? 'icon-install' : 'icon-uninstall';
118-
$packageArray['textaction'] = empty($packageArray['installed']) ? $this->modx->lexicon('install') : $this->modx->lexicon('uninstall');
117+
$packageArray['iconaction'] = !$isInstalled ? 'icon-install' : 'icon-uninstall';
118+
$packageArray['textaction'] = !$isInstalled ? $this->modx->lexicon('install') : $this->modx->lexicon('uninstall');
119119
$packageArray = $this->getPackageMeta($object, $packageArray);
120120
$packageArray = $this->checkForUpdates($object, $packageArray);
121121

manager/assets/modext/core/modx.layout.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Ext.extend(MODx.Layout, Ext.Viewport, {
6262
,splitBarMargin: 8
6363

6464
/**
65-
* @property {Object} focusRestoreEl - Set Focus back on the this Element
65+
* @property {Object} focusRestoreEl - Set Focus back on this Element
6666
*/
6767
,focusRestoreEl: []
6868

@@ -509,6 +509,7 @@ Ext.extend(MODx.Layout, Ext.Viewport, {
509509
submenu.classList.remove('active');
510510
} else {
511511
this.hideMenu();
512+
var isClick = false;
512513
submenu.classList.add('active');
513514
setTimeout(() => {
514515
var firstFocusEl = submenu.querySelectorAll('a')[0];
@@ -517,10 +518,16 @@ Ext.extend(MODx.Layout, Ext.Viewport, {
517518
}
518519
firstFocusEl.focus();
519520
}, 50);
521+
var menuItemClicked = (e) => {
522+
isClick = true;
523+
window.removeEventListener('click', menuItemClicked);
524+
};
520525
var focusRestore = (e) => {
521526
requestAnimationFrame(() => {
522527
if (!submenu.contains(document.activeElement)) {
523-
this.focusRestoreEl?.focus();
528+
if (!isClick) {
529+
this.focusRestoreEl?.focus();
530+
}
524531
this.hideMenu();
525532
window.removeEventListener('focusout', focusRestore);
526533
}
@@ -533,6 +540,7 @@ Ext.extend(MODx.Layout, Ext.Viewport, {
533540
window.removeEventListener('keyup', menuArrowKeysNavigation);
534541
}
535542
};
543+
window.addEventListener('click', menuItemClicked);
536544
window.addEventListener('focusout', focusRestore);
537545
window.addEventListener('keyup', menuArrowKeysNavigation);
538546
}

manager/assets/modext/modx.jsgrps-min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)