Skip to content

Commit 352ea49

Browse files
authored
Merge pull request #634 from Ortus-Solutions/development
v6.3.0
2 parents 66eb8a9 + f1ef3ab commit 352ea49

File tree

17 files changed

+68
-53
lines changed

17 files changed

+68
-53
lines changed

.github/workflows/lts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
##########################################################################################
1919
format:
2020
name: Code Auto-Formatting
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-latest
2222
steps:
2323
- uses: actions/checkout@v4
2424

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
format_check:
2121
name: Checks Source Code Formatting
22-
runs-on: ubuntu-20.04
22+
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout Repository
2525
uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ jobs:
222222
prep_next_release:
223223
name: Prep Next Release
224224
if: github.ref != 'refs/heads/development'
225-
runs-on: ubuntu-20.04
225+
runs-on: ubuntu-latest
226226
needs: [ build ]
227227
steps:
228228
- name: Checkout Development Repository

.github/workflows/snapshot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
##########################################################################################
2525
format:
2626
name: Code Auto-Formatting
27-
runs-on: ubuntu-20.04
27+
runs-on: ubuntu-latest
2828
steps:
2929
- uses: actions/checkout@v4
3030

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
tests:
1212
name: Test Suites
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
env:
1515
DB_USER: root
1616
DB_PASSWORD: root
@@ -24,6 +24,15 @@ jobs:
2424
experimental: [ false ]
2525
include:
2626
# Lucee 6 has a regression
27+
- cfengine: "boxlang@1"
28+
coldboxVersion: "^7"
29+
jdkVersion: "21"
30+
experimental: true
31+
- cfengine: "boxlang@1"
32+
coldboxVersion: "be"
33+
jdkVersion: "21"
34+
experimental: true
35+
# Lucee 6 has a regression
2736
- cfengine: "lucee@6"
2837
coldboxVersion: "^7"
2938
jdkVersion: "21"

box.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"ContentBox Tester Site",
3-
"version":"6.1.1",
3+
"version":"6.3.0",
44
"author":"Ortus Solutions <info@ortussolutions.com>",
55
"shortDescription":"A tester site for developing the ContentBox Modular CMS",
66
"type":"cms",
@@ -25,14 +25,13 @@
2525
],
2626
"dependencies":{
2727
"coldbox":"be",
28-
"commandbox-migrations":"^5.0.0"
28+
"commandbox-migrations":"*"
2929
},
3030
"devDependencies":{
31-
"testbox":"^5.0.0+1",
32-
"commandbox-boxlang":"*",
31+
"commandbox-boxlang":"*",
3332
"commandbox-cfformat":"*",
34-
"commandbox-cfconfig":"*",
3533
"commandbox-docbox":"*",
34+
"testbox":"*",
3635
"cbdebugger":"*",
3736
"route-visualizer":"*"
3837
},

modules/contentbox/box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"Curt Gratz <gratz@computerknowhow.com>"
2727
],
2828
"dependencies":{
29-
"cborm":"^4.0.0",
29+
"cborm":"^4.10.0",
3030
"cbjavaloader":"^2.0.0",
3131
"cbmailservices":"^2.0.0",
3232
"cbsecurity":"^3.0.0",

modules/contentbox/models/content/BaseContent.cfc

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ component
161161
column ="expireDate"
162162
notnull="false"
163163
ormtype="timestamp"
164-
default=""
165164
index ="idx_expireDate";
166165

167166
property
@@ -318,9 +317,7 @@ component
318317
inverse ="true"
319318
cascade ="all-delete-orphan";
320319

321-
property
322-
name ="activeContentVersions"
323-
persistent = "false";
320+
property name="activeContentVersions" persistent="false";
324321

325322
// M20 -> Parent Page loaded as a proxy
326323
property
@@ -768,7 +765,7 @@ component
768765
function getFeaturedImageURL(){
769766
var featured = getFeaturedImage();
770767
return !isNull( featured ) && len( featured ) ? (
771-
find( ":", featured )
768+
!findNoCase( mediaService.getCoreMediaRoot(), featured ) && find( ":", featured )
772769
? "/__media/" & featured
773770
// legacy column values without disk annoations
774771
: replaceNoCase(
@@ -801,15 +798,16 @@ component
801798
){
802799
// lock it for new content creation to avoid version overlaps
803800
lock name="contentbox.addNewContentVersion.#getSlug()#" type="exclusive" timeout="10" throwOnTimeout=true {
804-
805801
// Do we already have an active version?
806802
if ( hasActiveContent() ) {
807803
// cap checks if not in preview mode
808804
if ( !arguments.isPreview ) {
809805
maxContentVersionChecks();
810806
}
811807
// deactive the curent version, we do it after in case the content versions check kick off a transaction
812-
getContentVersions().filter( ( version ) => version.getIsActive() ).each( ( version ) => version.setIsActive( false ) );
808+
getContentVersions()
809+
.filter( ( version ) => version.getIsActive() )
810+
.each( ( version ) => version.setIsActive( false ) );
813811
}
814812

815813
// get a new version object with our incoming content + relationships

modules/contentbox/models/content/EntryService.cfc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,13 @@ component extends="ContentService" singleton {
169169
// we use HQL so we can be DB independent using the map() hql function thanks to John Wish, you rock!
170170
var hql = "SELECT new map( count(*) as count, YEAR(publishedDate) as year, MONTH(publishedDate) as month )
171171
FROM cbEntry
172-
WHERE isPublished = true
172+
WHERE isPublished = :isPublished
173173
AND passwordProtection = ''
174174
AND publishedDate <= :now
175175
GROUP BY YEAR(publishedDate), MONTH(publishedDate)
176176
ORDER BY 2 DESC, 3 DESC";
177177
// run report
178-
return executeQuery( query = hql, params = { "now" : now() } );
178+
return executeQuery( query = hql, params = { "isPublished" : true, "now" : now() } );
179179
}
180180

181181
/**
@@ -202,10 +202,10 @@ component extends="ContentService" singleton {
202202
){
203203
var results = {};
204204
var hql = "FROM cbEntry
205-
WHERE isPublished = true
205+
WHERE isPublished = :isPublished
206206
AND passwordProtection = ''
207207
AND publishedDate <= :now";
208-
var params = {};
208+
var params = { "isPublished" : true };
209209
params[ "now" ] = now();
210210

211211
// Site

modules/contentbox/modules/contentbox-admin/views/settings/index.cfm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
</li>
4343
<li class="nav-item">
4444
<a href="##login_options" data-toggle="tab" class="nav-link">
45-
<i class="fa fa-sign-in fa-lg"></i> Login
45+
<i class="fa fa-sign-in-alt fa-lg"></i> Login
4646
</a>
4747
</li>
4848
<li class="nav-item">

0 commit comments

Comments
 (0)