@@ -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
0 commit comments